[VB] | Public Sub setPaletteMode(p As Integer) |
[C#] | public void setPaletteMode(int p); |
ChartDirector 5.1 (.NET Edition)
DrawArea.setPaletteMode
Usage
[VB] | Public Sub setPaletteMode(p As Integer) |
[C#] | public void setPaletteMode(int p); |
Description
Constant | Value | Description |
---|---|---|
TryPalette | 0 | Use palette mode if the image contains less than 256 colors, otherwise use true color mode. This is the default. |
ForcePalette | 1 | Use palette mode. If the image contains more than 256 colors, reduce it to 256 colors using dithering (see DrawArea.setDitherMethod). |
NoPalette | 2 | Use true color mode. |
Arguments
Argument | Default | Description |
---|---|---|
p | (Mandatory) | The palette mode for PNG images. |
Return Value