开发者

What is the difference between using BITMAP::bmBits vs GetDIBits?

开发者 https://www.devze.com 2023-03-25 18:08 出处:网络
I just realized that there is BITMAP in GDI an开发者_如何转开发d then you do GetObject(hBmp, sizeof(BITMAP), &bmp); in almost all of the GetDIBits examples. but the newly populated bmp here has a

I just realized that there is BITMAP in GDI an开发者_如何转开发d then you do GetObject(hBmp, sizeof(BITMAP), &bmp); in almost all of the GetDIBits examples. but the newly populated bmp here has a field: bmBits

If I already have bitmaps's bits here, why would I call GetDIBits once again?

Thanks, Ali Veli


Using GetObject then getting the BITMAP::bmBits to get the bits can only be used when the bitmap was created using CreateDIBSection. GetDIBits can also be used to change the format of the Bitmap or to change it from DDB to DIB.

0

精彩评论

暂无评论...
验证码 换一张
取 消