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[])
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.
public void setEntries(int flags, int start, int count, byte[] val);
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. |
getEntries, com.ms.directX.DirectDrawSurface
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.
public void setEntries(int flags, int start, int count, Color c[]);
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. |
getEntries, com.ms.directX.DirectDrawSurface
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.
public void setEntries(int flags, int start, int count, PaletteEntry pe[]);
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. |
getEntries, com.ms.directX.DirectDrawSurface