Graphics.renderPalette

Overview | Methods | This Package | All Packages

Graphics.renderPalette

Renders the specified palette to this Graphics object.

Syntax

public final Palette renderPalette( Palette palette, boolean forceBackground )

Parameters

palette

A Palette object that specifies the new palette to render.

forceBackground

Set to true to cause the logical palette to be mapped to the colors already in the physical palette; otherwise, set to false to cause the logical palette to be copied into the device palette when the application is running in the foreground.

Return Value

Returns a Palette object that represents the previous palette for this object.

Remarks

WFC Palette objects are used to control the colors that are available for drawing when using display devices that support only 256 colors. By using a palette to determine which 256 colors the display will use, bitmaps can be drawn with nearly true color quality.