Page 1 of 1

Image distortion

Posted: Sat Jul 18, 2020 8:16 pm
by karweru
Dear all,

Is there any way to avoid image distortion when STRETCHed or resized?

Re: Image distortion

Posted: Sat Jul 18, 2020 8:42 pm
by srvet_claudio
Hi,
See doc:

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

with:

Mode_Stretch = BT_SCALE

Re: Image distortion

Posted: Sun Jul 19, 2020 5:58 am
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 )

Re: Image distortion

Posted: Sun Jul 19, 2020 12:32 pm
by karweru
Thank you Dr.Soto for the help, nice to have you back. Thank you Jimmy.