Microsoft DirectX 8.0 (Visual Basic)

Direct3DDevice8.GetPaletteEntries

Retrieves palette entries.

object.GetPaletteEntries( _ 
    PaletteNumber As Long, _ 
    ArrayOfEntries As Any)

Parts

object
Object expression that resolves to a Direct3DDevice8 object.
PaletteNumber
An ordinal value identifying the particular palette to retrieve.
ArrayOfEntries
A PALETTEENTRY type to be filled with the returned palette entries. See Remarks.

Error Codes

If the method fails, an error is raised and Err.Number can be set to D3DERR_INVALIDCALL.

For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.

Remarks

For more information on PALETTEENTRY, see the Microsoft Platform Software Development Kit (SDK). Note that as of Microsoft DirectX® 8.0, the peFlags member of the PALETTEENTRY structure does not work the way it is documented in the Platform SDK. The peFlags member is now the alpha channel for 8-bit palletized formats.

See Also

Direct3DDevice8.GetCurrentTexturePalette, Direct3DDevice8.SetCurrentTexturePalette, Direct3DDevice8.SetPaletteEntries, Texture Palettes