Hi guys,
If I get a bitmap from the clipboard with:
hBitmap=(HBITMAP)GetClipboardData(CF_BITMAP);
...how do I get the width and height ? Can I get at the BITMAPINFO ?
Thanks.
Printable View
Hi guys,
If I get a bitmap from the clipboard with:
hBitmap=(HBITMAP)GetClipboardData(CF_BITMAP);
...how do I get the width and height ? Can I get at the BITMAPINFO ?
Thanks.
Use GetObject API and pass in BITMAP structure
width and height should be filled in the bm structure (along with some other fields).Code:BITMAP bm;
::GetObject(hBitmap, sizeof(bm), &bm);