Microsoft SDK for Java

PaletteEntry Class Constructors

The PaletteEntry Class contains the following constructors:

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

PaletteEntry()

Creates an uninitialized palette entry object.

Syntax

public PaletteEntry();

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

Creates an initialized palette entry object.

Syntax

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

Parameters

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.

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