![]() |
![]() |
![]() |
Device.GetPaletteEntries Method |
Language: |
Retrieves palette entries.
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[];
paletteNumber System.Int32. Ordinal value that identifies the palette to retrieve.
Microsoft.DirectX.Direct3D.PaletteEntry[]. A PaletteEntry structure that represents the returned palette entries.
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.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center