IsIndexedPixelFormat 方法确定指定的像素格式是否为索引格式。
语法
BOOL IsIndexedPixelFormat(
  PixelFormat pixfmt
);
参数
pixfmt
类型: PixelFormat
一个 PixelFormat 常量,指定要测试的像素格式。
返回值
类型: BOOL
如果像素格式是索引格式,则此方法返回 TRUE;否则返回 FALSE。
要求
| 要求 | 值 | 
|---|---|
| 最低受支持的客户端 | Windows Vista [仅限桌面应用] | 
| 最低受支持的服务器 | Windows Server 2008 [仅限桌面应用] | 
| 目标平台 | Windows | 
| 标头 | gdipluspixelformats.h (包括 Gdiplus.h) | 
| Library | Gdiplus.lib |