Microsoft SDK for Java

getPalette

This method of the DirectDrawSurface Class retrieves the DirectDrawPalette structure associated with this surface.

Syntax

public DirectDrawPalette getPalette();

Return Value

Returns the DirectDrawPalette object if successful; null otherwise. This is null if no DirectDrawPalette object is associated with this surface. If the surface is the primary surface, or a back buffer to the primary surface, and the primary surface is in 8-bpp mode, this method returns the system palette.

See Also

setPalette

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