Packages
 In this topic

*Fields

 

Packages   PreviousThis PackageNext
Package com.ms.directX   Previous This
Package
Next

 


Class DDPixelFormat

public final class DDPixelFormat
{
  // Fields
  public int alphaBitDepth;
  public int alphaBitMask;
  public int blueBitMask;
  public int flags;
  public int fourCC;
  public int greenBitMask;
  public int redBitMask;
  public int rgbBitCount;
  public int uBitMask;
  public int vBitMask;
  public int yBitMask;
  public int yuvAlphaBitMask;
  public int yuvBitCount;
  public int zbufferBitDepth;
}

Describes the pixel format of a DirectDrawSurface object for the getPixelFormat method.

Fields

alphaBitDepth
Depth of alpha buffer.
alphaBitMask
Mask for alpha channel.
blueBitMask
Mask for blue bits.
flags
Optional control flags. These include the following:
DDPF_ALPHA
The pixel format describes an alpha-only surface.
DDPF_ALPHAPIXELS
The surface has alpha channel information in the pixel format.
DDPF_COMPRESSED
The surface will accept pixel data in the specified format and compress it during the write operation.
DDPF_FOURCC
The FourCC code is valid.
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 structure is valid.
DDPF_RGBTOYUV
The surface will accept RGB data and translate it during the write operation to YUV data. The format of the data to be written will be contained in the pixel format structure. The DDPF_RGB flag will be set.
DDPF_YUV
The YUV data in the pixel format structure is valid.
DDPF_ZBUFFER
The pixel format describes a z-buffer-only surface.
fourCC
FourCC code.
greenBitMask
Mask for green bits.
redBitMask
Mask for red bits.
rgbBitCount
RGB bits per pixel (4, 8, 16, 24, or 32).
uBitMask
Mask for U bits.
vBitMask
Mask for V bits.
yBitMask
Mask for Y bits.
yuvAlphaBitMask
Mask for alpha channel.
yuvBitCount
YUV bits per pixel (DDBD_4, DDBD_8, DDBD_16, DDBD_24, or DDBD_32).
zbufferBitDepth
Z-buffer bit depth (8, 16, 24, or 32).

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.