I'm looking for some code (or a site) that could teach me thing or two about how to shrink bitmaps. i've seen a few algorithms but i'm curious about which type would be the most suitable for use with ASM. any ideas?
Posted on 2002-12-08 20:55:12 by Crunchi
The StretchBlt function copies a bitmap from a source rectangle into a destination rectangle, stretching or compressing the bitmap to fit the dimensions of the destination rectangle, if necessary. Windows stretches or compresses the bitmap according to the stretching mode currently set in the destination device context.

BOOL StretchBlt(

HDC hdcDest, // handle of destination device context
int nXOriginDest, // x-coordinate of upper-left corner of dest. rect.
int nYOriginDest, // y-coordinate of upper-left corner of dest. rect.
int nWidthDest, // width of destination rectangle
int nHeightDest, // height of destination rectangle
HDC hdcSrc, // handle of source device context
int nXOriginSrc, // x-coordinate of upper-left corner of source rectangle
int nYOriginSrc, // y-coordinate of upper-left corner of source rectangle
int nWidthSrc, // width of source rectangle
int nHeightSrc, // height of source rectangle
DWORD dwRop // raster operation code
);
Posted on 2002-12-08 21:00:05 by IwasTitan
thankyou this helped me alot, and thanks to the guys that helped me to find this to thank you too!
Posted on 2002-12-22 05:27:11 by Crunchi
Your best friend is the Win32API.HLP file. If you dont have it alread, get it :)

This should be it

Your second best friend:

MSDN Online Search

Third Best Friend:

Total World Domination

Enjoy :)
:alright:
NaN
Posted on 2002-12-22 23:45:40 by NaN
isnt the 11 mb winhelp the incomplete one?
Posted on 2002-12-23 20:04:16 by Qages

isnt the 11 mb winhelp the incomplete one?


Well, It is better than not having any reference. :grin:
Posted on 2002-12-23 20:55:11 by roticv
Thanx... Ya i just pulled the link off of Betov's page.. i have no clue what version it is.. it all comes down to bandwidth really ;)
Posted on 2002-12-23 21:27:21 by NaN

Thanx... Ya i just pulled the link off of Betov's page.. i have no clue what version it is.. it all comes down to bandwidth really ;)


And with my dial up..the 11 meg version is a god send.

:alright:
Posted on 2002-12-23 21:39:13 by IwasTitan