DISPLAYCONFIG_PIXELFORMAT enumeration (wingdi.h)
The DISPLAYCONFIG_PIXELFORMAT enumeration specifies pixel format in various bits per pixel (BPP) values.
Syntax
typedef enum {
DISPLAYCONFIG_PIXELFORMAT_8BPP = 1,
DISPLAYCONFIG_PIXELFORMAT_16BPP = 2,
DISPLAYCONFIG_PIXELFORMAT_24BPP = 3,
DISPLAYCONFIG_PIXELFORMAT_32BPP = 4,
DISPLAYCONFIG_PIXELFORMAT_NONGDI = 5,
DISPLAYCONFIG_PIXELFORMAT_FORCE_UINT32 = 0xffffffff
} DISPLAYCONFIG_PIXELFORMAT;
Constants
DISPLAYCONFIG_PIXELFORMAT_8BPP Value: 1 Indicates 8 BPP format. |
DISPLAYCONFIG_PIXELFORMAT_16BPP Value: 2 Indicates 16 BPP format. |
DISPLAYCONFIG_PIXELFORMAT_24BPP Value: 3 Indicates 24 BPP format. |
DISPLAYCONFIG_PIXELFORMAT_32BPP Value: 4 Indicates 32 BPP format. |
DISPLAYCONFIG_PIXELFORMAT_NONGDI Value: 5 Indicates that the current display is not an 8, 16, 24, or 32 BPP GDI desktop mode. For example, a call to the QueryDisplayConfig function returns DISPLAYCONFIG_PIXELFORMAT_NONGDI if a DirectX application previously set the desktop to A2R10G10B10 format. A call to the SetDisplayConfig function fails if any pixel formats for active paths are set to DISPLAYCONFIG_PIXELFORMAT_NONGDI. |
DISPLAYCONFIG_PIXELFORMAT_FORCE_UINT32 Value: 0xffffffff Forces this enumeration to compile to 32 bits in size. Without this value, some compilers would allow this enumeration to compile to a size other than 32 bits. You should not use this value. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Available in Windows 7 Client. |
Header | wingdi.h (include Windows.h) |