当前位置:首页 > 网络编程 > 软件语言 > C语言 > 取得bitmap的大小

取得bitmap的大小

点击次数:32 次 发布日期:2008-12-01 11:57:58 作者:源代码网
源代码网推荐
取得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
源代码网供稿.
网友评论 (0)
会员中心
网络编程
本站推荐
网络编程之精华