ChartDirector 7.1 (C++ Edition)
DrawArea.
Usage
Description
Constant | Value | Description |
---|---|---|
Quantize | 0 | ChartDirector will first compute an optimal 256-color palette based on colors on the actual image. It then replaces the color of each pixel with the nearest color in the palette. This is the default method and produces the best result in most cases. |
OrderedDither | 1 | Use the ordered dithering algorithm with a 4 x 4 matrix, and with the standard web-safe palette. The web-safe palette is a palette compatible with very old browsers (e.g. Netscape 1.x and 2.x browsers) on 256-color displays. Web-safe palette is not an optimal palette. In most cases, this method is not as good as the Quantize method. Use this method only if you have to use the web-safe palette. |
ErrorDiffusion | 2 | Similar to OrderedDither but use the Floyd and Steinberg error diffusion algorithm. |
Arguments
Argument | Default | Description |
---|---|---|
m | (Mandatory) | The dithering method to use in case dithering is necessary. |
Return Value