Image distortion

Moderator: Rathinagiri

Post Reply
User avatar
karweru
Posts: 203
Joined: Fri Aug 01, 2008 1:51 pm
DBs Used: DBF,mysql,mariadb,postgresql,sqlite,odbc
Has thanked: 1 time
Been thanked: 10 times
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: 2113
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Has thanked: 48 times
Been thanked: 224 times
Contact:

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: 1082
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany
Has thanked: 190 times
Been thanked: 296 times

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: 203
Joined: Fri Aug 01, 2008 1:51 pm
DBs Used: DBF,mysql,mariadb,postgresql,sqlite,odbc
Has thanked: 1 time
Been thanked: 10 times
Contact:

Post by karweru »

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

Post Reply