【MFC】取得bitmap的大小

 

CBitmap bitmap;
bitmap.LoadBitmap(IDB_BITMAP3); 
// load resource

BITMAP bmp;
bitmap.GetBitmap(
& bmp);

const   int  nWidth   =  bmp.bmWidth;  // width
const   int  nHeight  =  bmp.bmHeight;  // height
 

你可能感兴趣的:(【MFC】取得bitmap的大小)