size from HBITMAP
-
is there any way to get pixel size from HBITMAP? (i want to center it into rectangle) (most often it is loaded by LoadImage - maybe resource pixel size is available?) t!
-
is there any way to get pixel size from HBITMAP? (i want to center it into rectangle) (most often it is loaded by LoadImage - maybe resource pixel size is available?) t!
First of all yes I know the answer, but if your are using Visual C++ and MFC, a simple search of the help sytem will give you the answer. Example: (You could write this) CSize GetSizeOfBitmap( CBitmap& MyBitmap ) { BITMAP bmp; MyBitmap.GetBitmap(&bmp); return CSize(bmp.bmWidth,bmp.bmHeight); } ------------------------------------ Trust in the code Luke. Yea right!
-
First of all yes I know the answer, but if your are using Visual C++ and MFC, a simple search of the help sytem will give you the answer. Example: (You could write this) CSize GetSizeOfBitmap( CBitmap& MyBitmap ) { BITMAP bmp; MyBitmap.GetBitmap(&bmp); return CSize(bmp.bmWidth,bmp.bmHeight); } ------------------------------------ Trust in the code Luke. Yea right!
-
is there any way to get pixel size from HBITMAP? (i want to center it into rectangle) (most often it is loaded by LoadImage - maybe resource pixel size is available?) t!