ChartDirector 6.0 (C++ Edition)
int reduceColors(int colorCount, bool blackAndWhite = false);
Reduces the number of colors in the image.
The colors in the image will be reduced to at most the number of colors specified, which should be 16 - 256. You may also set the image to black and white. In this case, the color count means number of grey levels.
The colors will be reduced by computing an optimal palette for the image. The image will then be converted using the palette based on the current dithering settings (see DrawArea.setDitherMethod
|colorCount||(Mandatory)||The maximum number of colors that image should have after after reduction. Must be between 16 - 256.|
|blackAndWhite||false||A true value means the image will be converted to black and white (with grey levels). A false value means the image will not be converted to black and white.
The actual number of colors the converted image has.
© 2017 Advanced Software Engineering Limited. All rights reserved.