Microsoft SDK for Java

PaletteEntry Class

The PaletteEntry Class of the com.ms.directX package specifies a color palette entry when creating palettes using the createPalette method.

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);
}

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 might need to cast such values to byte type.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.