The StretchDIBits interface has the following issues
int StretchDIBits( HDC hdc, int xDest, int yDest, int DestWidth, int DestHeight, int xSrc, int ySrc, int SrcWidth, int SrcHeight, const VOID *lpBits, const BITMAPINFO *lpBitsInfo, UINT iUsage, DWORD dwRop ); In StretchDIBits, pass negative values to BITMAPINFO.bmiHeaderbiHeight, and pass 0,0 to xSrc and ySrc. At this point, the coordinate origin is in the upper […]