Microsoft SDK for Java

setEntries

The setEntries method of the DirectDrawPalette Class contains the following signatures:

setEntries(int flags, int start, int count, byte[] val)
setEntries(int flags, int start, int count, Color c[])
setEntries(int flags, int start, int count, PaletteEntry pe[])

setEntries(int flags, int start, int count, byte[] val)

Immediately changes entries in a DirectDrawPalette object. The palette must have been attached to a surface by using the setPalette method before setEntries can be used.

Syntax

public void setEntries(int flags, int start, int count, byte[] val);

Parameters

flags Reserved; the value must be 0.
start The first entry to be set.
count The number of palette entries to be changed.
val The array variable that contains the palette entries. The palette entries are 1 byte each if the DDPCAPS_8BITENTRIES flag is set; otherwise, entries are 4 bytes each. Each entry is a color description.

See Also

getEntries, com.ms.directX.DirectDrawSurface

setEntries(int flags, int start, int count, Color c[])

Immediately changes entries in a DirectDrawPalette object. The palette must have been attached to a surface by using the setPalette method before setEntries can be used.

Syntax

public void setEntries(int flags, int start, int count, Color c[]);

Parameters

flags Reserved; the value must be 0.
start The first entry to be set.
count The number of palette entries to be changed.
c The array variable that contains the new color values for each entry.

See Also

getEntries, com.ms.directX.DirectDrawSurface

setEntries(int flags, int start, int count, PaletteEntry pe[])

Immediately changes entries in a DirectDrawPalette object. The palette must have been attached to a surface by using the setPalette method before setEntries can be used.

Syntax

public void setEntries(int flags, int start, int count, PaletteEntry pe[]);

Parameters

flags Reserved; the value must be 0.
start The first entry to be set.
count The number of palette entries to be changed.
pe The array variable that contains the PaletteEntry objects that define the new values for each entry.

See Also

getEntries, com.ms.directX.DirectDrawSurface

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