by Villy21 » Nov 18, 2008 @ 12:37pm
This function can`t Blt to defined RECT. *rc (in) is the rect of source but not the destination.
In this function you can define only center_x and center_y but not out rect.
scale (in) can help to zoom.
But from help (Values bigger than 65536 will enlarge the image, values smaller than 65536 will shrink the image.) I can't understand if scale=80000 is it zoom x2 or maybe x3 ?
I need a clear formula to make the same effect as WinAPI StretchBlt:
MSDN->This 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 set in the destination device context.
BOOL StretchBlt(
HDC hdcDest,
int nXOriginDest,
int nYOriginDest,
int nWidthDest,
int nHeightDest,
HDC hdcSrc,
int nXOriginSrc,
int nYOriginSrc,
int nWidthSrc,
int nHeightSrc,
DWORD dwRop
);