News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Question on StretchBlt

Started by hutch--, April 27, 2020, 09:54:22 PM

Previous topic - Next topic

hutch--

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.

jj2007

I suspect that Gdi+ would offer anti-aliasing or interpolation for better quality but honestly I haven't tested that.

JoeBr

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

jj2007


hutch--

Thanks Joe, this will be useful to me in the future.