DDPIXELFORMAT
The DDPIXELFORMAT type describes the pixel format of a DirectDrawSurface object for the DirectDrawSurface7.GetPixelFormat method.
Type DDPIXELFORMAT
lAlphaBitDepth As Long
lBBitMask As Long
lBumpBitCount As Long
lBumpDuBitMask As Long
lBumpDvBitMask As Long
lBumpLuminanceBitMask As Long
lFlags As CONST_DDPIXELFORMATFLAGS
lFourCC As Long
lGBitMask As Long
lLuminanceAlphaBitMask As Long
lLuminanceBitCount As Long
lLuminanceBitMask As Long
lRBitMask As Long
lRGBAlphaBitMask As Long
lRGBBitCount As Long
lRGBZBitMask As Long
lStencilBitDepth As Long
lStencilBitMask As Long
lUBitMask As Long
lVBitMask As Long
lYBitMask As Long
lYUVAlphaBitMask As Long
lYUVBitCount As Long
lYUVZBitMask As Long
lZBitMask As Long
lZBufferBitDepth As Long
End Type
Members
- lAlphaBitDepth
- bit depth (1, 2, 4, or 8) for an alpha-only surface (DDPF_ALPHA). For pixel formats that contain alpha information interleaved with color data (DDPF_ALPHAPIXELS), you must count the bits in the lRGBAlphaBitMask member to obtain the bit depth of the alpha component.
- lBBitMask
- Mask for blue bits.
- lBumpBitCount
- Total bump-map bits per pixel in a bump-map surface.
- lBumpDuBitMask
- Mask for bump-map U-delta bits
- lBumpDvBitMask
- Mask for bump-map V-delta bits.
- lBumpLuminanceBitMask
- Mask for luminance in a bump-map pixel.
- lFlags
- Constants of the CONST_DDPIXELFORMATFLAGS enumeration describing optional control flags.
- lFourCC
- FourCC code. For more information see, Four-Character Codes (FOURCC).
- lGBitMask
- Mask for green bits.
- lRGBAlphaBitMask and lYUVAlphaBitMask and lLuminanceAlphaBitMask
- Masks for the .
- lLuminanceBitCount
- Total luminance bits per pixel. This member applies only to luminance-only and luminance-alpha surfaces.
- lLuminanceBitMask
- Mask for luminance bits.
- lRBitMask
- Mask for red bits.
- lRGBAlphaBitMask and lYUVAlphaBitMask
- Masks for the .
- lRGBBitCount
- RGB bits per pixel (4, 8, 16, 24, or 32).
- lRGBZBitMask and lYUVZBitMask
- Masks for z channel.
- lStencilBitDepth
- Bit depth of the stencil buffer. This member specifies how many bits are reserved within each pixel of the z-buffer for stencil information (the total number of z-bits is equal to lZBufferBitDepth minus lStencilBitDepth).
- lStencilBitMask
- Mask for stencil bits within each z-buffer pixel.
- lUBitMask
- Mask for U bits.
- lVBitMask
- Mask for V bits.
- lYBitMask
- Mask for Y bits.
- lYUVBitCount
- YUV bits per pixel (4, 8, 16, 24, or 32).
- lZBitMask
- Mask for z bits.
- lZBufferBitDepth
- Z-buffer bit depth (8, 16, or 24); 32-bit z-buffers are not supported.