The PaletteEntry Class contains the following constructors:
PaletteEntry()
PaletteEntry(byte[] b, int count, int flags)
Creates an uninitialized palette entry object.
public PaletteEntry();
Creates an initialized palette entry object.
public PaletteEntry(byte[] b, int count, int flags);
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. |
Although b can contain data for more than one palette entry, count specifies which data to use to initialize the object being created.