This method of the DirectDrawPalette Class queries palette values from a DirectDrawPalette object.
public void getEntries(int flags, int start, int count, byte[] val);
flags | Reserved; the value must be 0. |
start | The beginning of the entries that should be sequentially retrieved. |
count | Number of palette entries that can fit in the object-specified val. The colors of each palette entry are returned in sequence, from the value of the start parameter through the value of the count parameter minus 1. |
val | The array variable that receives 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. |