The MASM Forum

General => The Workshop => Topic started by: hutch-- on April 27, 2020, 09:54:22 PM

Title: Question on StretchBlt
Post by: hutch-- on April 27, 2020, 09:54:22 PM
Is there any reason not to use SetStretchBltMode() and StretchBlt() for scaling bitmap images. These functions have been around for eternity and while I doubt they are fast, they have worked for a long time.
Title: Re: Question on StretchBlt
Post by: jj2007 on April 27, 2020, 10:41:18 PM
I suspect that Gdi+ would offer anti-aliasing or interpolation for better quality but honestly I haven't tested that.
Title: Re: Question on StretchBlt
Post by: JoeBr on May 05, 2020, 05:02:36 AM
Per JJ's note -

You can take a look at (GDI-Plus)

GdipSetCompositingQuality, hGr, val
GdipSetInterpolationMode, hGr, val
GdipSetSmoothingMode, hGr, val

If not too painful of a port.

Joe
Title: Re: Question on StretchBlt
Post by: jj2007 on May 05, 2020, 08:02:37 AM
Thanks, Joe. Have you seen my recent Gdi+ post (http://masm32.com/board/index.php?topic=8458.msg93170#msg93170)?
Title: Re: Question on StretchBlt
Post by: hutch-- on May 05, 2020, 09:23:10 AM
Thanks Joe, this will be useful to me in the future.