ChartDirector 7.0 (ASP/COM/VB Edition)

DrawArea.setPaletteMode


Usage

setPaletteMode(p)

Description

Sets the palette mode to use when writing the image in PNG format.

The PNG format supports both palette based images and true color images. Palette based images can only have 256 colors, but is smaller in size.

The palette mode must be one of the following predefined constants.

ConstantValueDescription
TryPalette0Use palette mode if the image contains less than 256 colors, otherwise use true color mode. This is the default.
ForcePalette1Use palette mode. If the image contains more than 256 colors, reduce it to 256 colors using dithering (see DrawArea.setDitherMethod).
NoPalette2Use true color mode.

Arguments

ArgumentDefaultDescription
p(Mandatory)The palette mode for PNG images.

Return Value

None