Microsoft SDK for Java

setPalette

This method of the DirectDrawSurface Class attaches the specified DirectDrawPalette object to a surface. The surface uses this palette for all subsequent operations. The palette change takes place immediately, without regard to refresh timing.

Syntax

public void setPalette(DirectDrawPalette ddp);

Parameters

ddp The DirectDrawPalette object that this surface should use for future operations.

Remarks

If this method is called several times consecutively on the same surface for the same palette, the reference count for the palette is incremented only once. Subsequent calls do not effect the palette's reference count.

See Also

getPalette, com.ms.directX.DirectDraw.createPalette

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