Re: [Win32] Maximal pixmap (CompatibleBitmap) size
- Posted by Martin Stachon <martin.stachon at worldonline.cz> May 17, 2003
- 424 views
Pete Lomax wrote: > >Pete Lomax <petelomax at blueyonder.co.uk> wrote: > >> On Thu, 15 May 2003 18:43:40 +0200, Martin Stachon > >> <martin.stachon at worldonline.cz> wrote: > >> > >> >I use stretchBlt() to zoom the bitmap with setStretchBltMode to HALFTONE. > >> > >> Mmmmm. I'd never heard of that, a quick web search makes me think it > >> would be nice. Any chance of an example use or mods for win32lib? > > > >It is in Recent User Contributions for quite some time. > Erm, I've had stretchBlt for quite some time & used it lots, thanks.. > it is the setStretchBltMode to HALFTONE part I cannot find. place this in the top of stretchBlt.e : global constant xSetStretchBltMode = registerw32Function (gdi32, "SetStretchBltMode", {C_LONG, C_INT}, C_INT) global constant HALFTONE = 4 and add this just before the xStretchBlt call : -- the image will look nicer with this, but only on -- newer Windows versions if w32Func (xSetStretchBltMode, {dstDC, HALFTONE}) = 0 then warnErr( "stretchBlt : SetStretchBltMode() failed" ) end if I thought I have updated the file... Martin