明明是个16色位图,代码如下: BITMAP bm;
bitmap->GetBitmap(&bm);
wid = bm.bmWidth;
hei = bm.bmHeight;
bits = bm.bmBitsPixel;
size = wid * hei;
col = index = pos = 0;
bytesPerLine = bm.bmWidthBytes;那个bm.bmBitsPixel却是32,哪里出错了?
bitmap->GetBitmap(&bm);
wid = bm.bmWidth;
hei = bm.bmHeight;
bits = bm.bmBitsPixel;
size = wid * hei;
col = index = pos = 0;
bytesPerLine = bm.bmWidthBytes;那个bm.bmBitsPixel却是32,哪里出错了?
另,怎么得到BITMAPINFOHEADER呢?