MFC中如何加载bmp图片以及获取bmp图片的长和宽

1 CBitmap bitmap;
2 bitmap.LoadBitmap(IDB_BITMAP3); //加载bmp
3 
4 BITMAP bmp;
5 bitmap.GetBitmap(&bmp);
6 
7 const int nWidth  = bmp.bmWidth; //width
8 const int nHeight = bmp.bmHeight; //height

 

posted @ 2014-10-21 13:44  kim_berley  阅读(1534)  评论(0编辑  收藏  举报