Dear all,
Is there any way to avoid image distortion when STRETCHed or resized?
Image distortion
Moderator: Rathinagiri
- karweru
- Posts: 220
- Joined: Fri Aug 01, 2008 1:51 pm
- DBs Used: DBF,mysql,mariadb,postgresql,sqlite,odbc
- Contact:
Image distortion
Kind regards,
Gilbert.
Gilbert.
- srvet_claudio
- Posts: 2193
- Joined: Thu Feb 25, 2010 8:43 pm
- Location: Uruguay
- Contact:
Re: Image distortion
Hi,
See doc:
BT_BitmapCopyAndResize (hBitmap, New_Width, New_Height, Mode_Stretch, Algorithm)
with:
Mode_Stretch = BT_SCALE
See doc:
BT_BitmapCopyAndResize (hBitmap, New_Width, New_Height, Mode_Stretch, Algorithm)
with:
Mode_Stretch = BT_SCALE
- AUGE_OHR
- Posts: 2060
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Re: Image distortion
hi,
when reduce Bitmap e.g. for Thumbs use BT_RESIZE_HALFTONE
Windows can good Scale-Up Bitmap but bad when Scale-down
when reduce Bitmap e.g. for Thumbs use BT_RESIZE_HALFTONE
Code: Select all
BT_BitmapCopyAndResize (hBitmap, New_Width, New_Height, Mode_Stretch, BT_RESIZE_HALFTONE )
have fun
Jimmy
Jimmy
- karweru
- Posts: 220
- Joined: Fri Aug 01, 2008 1:51 pm
- DBs Used: DBF,mysql,mariadb,postgresql,sqlite,odbc
- Contact:
Re: Image distortion
Thank you Dr.Soto for the help, nice to have you back. Thank you Jimmy.
Kind regards,
Gilbert.
Gilbert.