请高手指点调用API函数GetDIBits的问题
函数定义如下:
int GetDIBits(
HDC hdc, // handle to DC
HBITMAP hbmp, // handle to bitmap
UINT uStartScan, // first scan line to set
UINT cScanLines, // number of scan lines to copy
LPVOID lpvBits, // array for bitmap bits
LPBITMAPINFO lpbi, // bitmap data buffer
UINT uUsage // RGB or palette index
);
我这样调
GetDIBits(i_DC, i_hBitmap, starscan, numscan, Null, bitinfo, DIB_RGB_COLORS)总是返回0,未success。望不吝赐教!