Packages
 In this topic

*Constructors

*Fields

 

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

 


Class PaletteEntry

public final class PaletteEntry
{
  // Fields
  public int peBlue;
  public int peFlags;
  public int peGreen;
  public int peRed;

  // Constructors
  public PaletteEntry();
  public PaletteEntry(byte[] b, int count, int flags);
}

Specifies a color palette entry when creating palettes using the createPalette method.

Note that the fields of this class take values indicating the intensity of red, green, or blue. Intensity values are unsigned values in the range 0 to 255, unlike byte values which range from -128 to 127. When assigning intensity values to these fields, you may need to cast such values to byte type.

Constructors

PaletteEntry

public PaletteEntry();

Creates an uninitialized palette entry object.

PaletteEntry

public PaletteEntry(byte[] b, int count, int flags);

Creates an initialized palette entry object.

ParameterDescription
b Array variable that contains the initial palette entry data. The data must be in the order: red intensity, green intensity, blue intensity, and flags.
count Index into b of palette entry data for this object.
flags Can be 0 or DDPCAPS_8BITENTRIES.

Remarks:

Although b can contain data for more than one palette entry, count specifies which data to use to initialize the object being created.

Fields

peBlue
Intensity of blue.
peFlags
One value of D3DPAL_ type.
peGreen
Intensity of green.
peRed
Intensity of red.

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