Microsoft DirectX 9.0 SDK Update (October 2004)

Device.GetPaletteEntries Method

Language:

Note: This documentation is preliminary and is subject to change.

Retrieves palette entries.

Definition

Visual Basic .NET Public Function GetPaletteEntries( _
    ByVal paletteNumber As Integer _
) As PaletteEntry()
C# public PaletteEntry[] GetPaletteEntries(
    int paletteNumber
);
Managed C++ public: PaletteEntry GetPaletteEntries(
    int paletteNumber
) __gc[];
JScript .NET 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


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center