Image::GetWidth 方法获取此图像的宽度(以像素为单位)。
语法
UINT GetWidth();
返回值
类型: UINT
此方法返回此图像的宽度(以像素为单位)。
要求
| 要求 | 值 | 
|---|---|
| 最低受支持的客户端 | Windows XP、Windows 2000 Professional [仅限桌面应用] | 
| 最低受支持的服务器 | Windows 2000 Server [仅限桌面应用] | 
| 目标平台 | Windows | 
| 标头 | gdiplusheaders.h (包括 Gdiplus.h) | 
| Library | Gdiplus.lib | 
| DLL | Gdiplus.dll |