Image distortion

Moderator: Rathinagiri

Post Reply
User avatar
karweru
Posts: 220
Joined: Fri Aug 01, 2008 1:51 pm
DBs Used: DBF,mysql,mariadb,postgresql,sqlite,odbc
Contact:

Image distortion

Post by karweru »

Dear all,

Is there any way to avoid image distortion when STRETCHed or resized?
Kind regards,
Gilbert.
User avatar
srvet_claudio
Posts: 2193
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: Image distortion

Post by srvet_claudio »

Hi,
See doc:

BT_BitmapCopyAndResize (hBitmap, New_Width, New_Height, Mode_Stretch, Algorithm)

with:

Mode_Stretch = BT_SCALE
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
AUGE_OHR
Posts: 2060
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: Image distortion

Post by AUGE_OHR »

hi,
karweru wrote: Sat Jul 18, 2020 8:16 pm Is there any way to avoid image distortion when STRETCHed or resized?
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
User avatar
karweru
Posts: 220
Joined: Fri Aug 01, 2008 1:51 pm
DBs Used: DBF,mysql,mariadb,postgresql,sqlite,odbc
Contact:

Re: Image distortion

Post by karweru »

Thank you Dr.Soto for the help, nice to have you back. Thank you Jimmy.
Kind regards,
Gilbert.
Post Reply