IsCanonicalPixelFormat 函式 (gdipluspixelformats.h)
IsCanonicalPixelFormat 方法會判斷指定的圖元格式是否為標準格式之一:PixelFormat32bppARGB 或 PixelFormat64bppARGB。
語法
BOOL IsCanonicalPixelFormat(
PixelFormat pixfmt
);
參數
pixfmt
類型: PixelFormat
PixelFormat 常數,指定要測試的圖元格式。
傳回值
類型: BOOL
如果圖元格式為 PixelFormat32bppARGB 或 PixelFormat64bppARGB,則此方法會傳回 TRUE;否則會傳回 FALSE。
規格需求
需求 | 值 |
---|---|
最低支援的用戶端 | Windows Vista [僅限傳統型應用程式] |
最低支援的伺服器 | Windows Server 2008 [僅限傳統型應用程式] |
目標平台 | Windows |
標頭 | gdipluspixelformats.h (包含 Gdiplus.h) |
程式庫 | Gdiplus.lib |