IsCanonicalPixelFormat 函数 (gdipluspixelformats.h)

IsCanonicalPixelFormat 方法确定指定的像素格式是规范格式之一:PixelFormat32bppARGB 还是 PixelFormat64bppARGB

语法

BOOL IsCanonicalPixelFormat(
  PixelFormat pixfmt
);

参数

pixfmt

类型: PixelFormat

一个 PixelFormat 常量,指定要测试的像素格式。

返回值

类型: BOOL

如果像素格式为 PixelFormat32bppARGBPixelFormat64bppARGB,则此方法返回 TRUE;否则,它将返回 FALSE

要求

要求
最低受支持的客户端 Windows Vista [仅限桌面应用]
最低受支持的服务器 Windows Server 2008 [仅限桌面应用]
目标平台 Windows
标头 gdipluspixelformats.h (包括 Gdiplus.h)
Library Gdiplus.lib