Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我刚刚意识到BITMAPGDI 中存在,然后您GetObject(hBmp, sizeof(BITMAP), &bmp);几乎在所有GetDIBits示例中都这样做。但是这里新填充的 bmp 有一个字段:bmBits
BITMAP
GetObject(hBmp, sizeof(BITMAP), &bmp);
GetDIBits
bmBits
如果我这里已经有位图的位,我为什么还要GetDIBits再打电话?
谢谢,阿里维利
只能在使用 . 创建位图时使用GetObjectthen 获取位。也可用于更改位图的格式或将其从 DDB 更改为 DIB。BITMAP::bmBitsCreateDIBSectionGetDIBits
GetObject
BITMAP::bmBits
CreateDIBSection