Image::GetPixelFormat 方法获取此 Image 对象的像素格式。
语法
PixelFormat GetPixelFormat();
返回值
类型: PixelFormat
此方法返回一个整数,指示此 Image 对象的像素格式。 表示各种像素格式的 PixelFormat 数据类型和常量在 Gdipluspixelformats.h 中定义。 有关像素格式常量的详细信息,请参阅 图像像素格式常量。
要求
| 要求 | 值 | 
|---|---|
| 最低受支持的客户端 | Windows XP、Windows 2000 Professional [仅限桌面应用] | 
| 最低受支持的服务器 | Windows 2000 Server [仅限桌面应用] | 
| 目标平台 | Windows | 
| 标头 | gdiplusheaders.h (包括 Gdiplus.h) | 
| Library | Gdiplus.lib | 
| DLL | Gdiplus.dll |