DirectX SDK

CONST_DDPIXELFORMATFLAGS

The CONST_DDPIXELFORMATFLAGS enumeration is used by the lFlags member of the DDPIXELFORMAT type to specify optional control flags.

Enum CONST_DDPIXELFORMATFLAGS
    DDPF_ALPHA          =      2
    DDPF_ALPHAPIXELS    =      1
    DDPF_ALPHAPREMULT   =  32768
    DDPF_BUMPDUDV       = 524288
    DDPF_BUMPLUMINANCE  = 262144
    DDPF_COMPRESSED     =    128
    DDPF_FOURCC         =      4
    DDPF_LUMINANCE      = 131072
    DDPF_PALETTEINDEXED1 =  2048
    DDPF_PALETTEINDEXED2 =  4096
    DDPF_PALETTEINDEXED4 =     8
    DDPF_PALETTEINDEXED8 =    32
    DDPF_PALETTEINDEXEDTO8 =  16
    DDPF_RGB             =    64
    DDPF_RGBTOYUV        =   256
    DDPF_STENCILBUFFER   = 16384
    DDPF_YUV             =   512
    DDPF_ZBUFFER         =  1024
    DDPF_ZPIXELS         =  8192
End Enum
DDPF_ALPHA
The pixel format describes an alpha-only surface.
DDPF_ALPHAPIXELS
The surface has alpha channel information in the pixel format.
DDPF_ALPHAPREMULT
The surface uses the premultiplied alpha format. That is, the color components in each pixel are premultiplied by the alpha component.
DDPF_BUMPDUDV
Bump-map data in the pixel format is valid. Bump-map information is in the lBumpBitCount, lBumpDuBitMask, lBumpDvBitMask, and lBumpLuminanceBitMask members.
DDPF_BUMPLUMINANCE
The luminance data in the pixel format is valid, and the lLuminanceBitMask member descibes valid luminance bits for a luminance-only or luminance-alpha surface.
DDPF_COMPRESSED
The surface accepts pixel data in the specified format and compresses it during the write operation.
DDPF_FOURCC
The lFourCC member is valid and contains a FOURCC code describing a non-RGB pixel format.
DDPF_LUMINANCE
The pixel format describes a luminance-only or luminance-alpha surface.
DDPF_PALETTEINDEXED1
DDPF_PALETTEINDEXED2
DDPF_PALETTEINDEXED4
DDPF_PALETTEINDEXED8
The surface is 1-, 2-, 4-, or 8-bit color indexed.
DDPF_PALETTEINDEXEDTO8
The surface is 1-, 2-, or 4-bit color indexed to an 8-bit palette.
DDPF_RGB
The RGB data in the pixel format type is valid.
DDPF_RGBTOYUV
The surface accepts RGB data and translates it during the write operation to YUV data. The format of the data to be written is contained in the pixel format type. The DDPF_RGB flag is set.
DDPF_STENCILBUFFER
The surface encodes stencil and depth information in each pixel of the z-buffer.
DDPF_YUV
The YUV data in the pixel format type is valid.
DDPF_ZBUFFER
The pixel format describes a z-buffer-only surface.
DDPF_ZPIXELS
The surface contains z information in the pixels.