calculate the size of HBITMAP
-
How to calculate the memory size of HBITMAP after loading it.As the size of Bitmap depends upon the system settings(Pexels, color etc.) -- modified at 4:37 Tuesday 16th May, 2006
-
How to calculate the memory size of HBITMAP after loading it.As the size of Bitmap depends upon the system settings(Pexels, color etc.) -- modified at 4:37 Tuesday 16th May, 2006
Can you be more specific_**
**_
WhiteSky
-
How to calculate the memory size of HBITMAP after loading it.As the size of Bitmap depends upon the system settings(Pexels, color etc.) -- modified at 4:37 Tuesday 16th May, 2006
Hi, Use GetObject API The GetObject function retrieves information for the specified graphics object. int GetObject( HGDIOBJ hgdiobj, // handle to graphics object int cbBuffer, // size of buffer for object information LPVOID lpvObject // buffer for object information );
-
How to calculate the memory size of HBITMAP after loading it.As the size of Bitmap depends upon the system settings(Pexels, color etc.) -- modified at 4:37 Tuesday 16th May, 2006
-
How to calculate the memory size of HBITMAP after loading it.As the size of Bitmap depends upon the system settings(Pexels, color etc.) -- modified at 4:37 Tuesday 16th May, 2006
Use:
HBITMAP hBitmap = LoadBitmap(...);
BITMAP bmp;
GetObject(hBitmap, sizeof(bmp), &bmp);
int nWidth = bmp.bmWidth;
int nHeight = bmp.bmHeight;
"The largest fire starts but with the smallest spark." - David Crow