quantizeGifImage

fun quantizeGifImage(image: Image, maxColors: Int, transparentAlphaThreshold: Int, quantizer: ColorQuantizer, forceTransparency: Boolean): QuantizedImageData(source)

Quantizes the given image to a maximum number of colors.

Return

The quantized image data.

Parameters

image

The image to quantize.

maxColors

The maximum number of colors in the quantized image.

quantizer

The ColorQuantizer to use for quantization.

forceTransparency

Whether to reserve a color for transparency.