Device.GetPaletteEntries(Int32) Method (Microsoft.DirectX.Direct3D)

Retrieves palette entries.

Definition

Visual Basic Public Function GetPaletteEntries( _
    ByVal paletteNumber As Integer _
) As PaletteEntry()
C# public PaletteEntry[] GetPaletteEntries(
    int paletteNumber
);
C++ public:
array<PaletteEntry>^ GetPaletteEntries(
    int paletteNumber
);
JScript public function GetPaletteEntries(
    paletteNumber : int
) : PaletteEntry[];

Parameters

paletteNumber System.Int32
Ordinal value that identifies the palette to retrieve.

Return Value

Microsoft.DirectX.Direct3D.PaletteEntry[]
A PaletteEntry structure that represents the returned palette entries.

Remarks

For more information about PaletteEntry, see the Microsoft Platform Software Development Kit (SDK).

In Microsoft DirectX 9.0 and later, the Flags member of the PaletteEntry structure does not work as documented in the Platform SDK. The Flags member is now the alpha channel for 8-bit palletized formats.

Exceptions

InvalidCallException

The method call is invalid. For example, a method's parameter might contain an invalid value.

See Also