Reduces the number of colors in an <Image> object to the specified count.
int32 QuantizeColors( Image p_oSourceImage, Image p_oDestImage, int32 p_nColorCount, ColorArray p_acQuantizationResults, ColorArray p_oPaletteColors )
Parameter Type | Parameter Name | Documentation |
---|---|---|
<Image> | p_oSourceImage | A pointer to the source <Image> object. This object will not be modified by this function. |
<Image> | p_oDestImage | A pointer to the destination <Image> object that will contain the results of color quantization. |
int32 | p_nColorCount | An <int32> that defines the maximum number of colors in the destination <Image> object after quantization. |
<ColorArray> | p_acQuantizationResults | A pointer to a <ColorArray> object stores an array representing the quantized colors. |
<ColorArray> | p_oPaletteColors | A pointer to a <ColorArray> that stores the palette of the quantized image. |
None published. Please look for an example in the Scenome Scripting Language code base.