Platform SDK: DirectX

DirectDrawPalette.SetEntries

The DirectDrawPalette.SetEntries method changes entries in a DirectDrawPalette object immediately.

object.SetEntries( _ 
    start As Long, _ 
    count As Long, _ 
    val() As PALETTEENTRY)

Parameters

object
Object expression that resolves to a DirectDrawPalette object.
start
First entry to be set.
count
Number of palette entries to be changed.
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:

DDERR_INVALIDOBJECT
DDERR_INVALIDPARAMS
DDERR_NOPALETTEATTACHED
DDERR_NOTPALETTIZED
DDERR_UNSUPPORTED

See Also

DirectDrawPalette.GetEntries, DirectDrawSurface7.SetPalette