DirectDrawPalette.GetEntries
The DirectDrawPalette.GetEntries method queries palette values from a DirectDrawPalette object.
object.GetEntries( _
start As Long, _
count As Long, _
val() As PALETTEENTRY)
Parameters
- object
- Object expression that resolves to a DirectDrawPalette object.
- start
- Start of the entries to be retrieved sequentially.
- count
- Number of palette entries that can fit in the address specified in 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. (These parameters are set by DirectDrawPalette.SetEntries.)
- val()
- Array of variables of type PALETTEENTRY. The palette entries are 1 byte each if the DDPCAPS_8BITENTRIES flag was set in the flags parameter of the DirectDraw7.CreatePalette, and 4 bytes otherwise. Each field is a color description.
Error Codes
If the method fails, it raises an error, and Err.Number can be set to one of the following values:
See Also
DirectDrawPalette.SetEntries