neuQuant

fun neuQuant(samplingFactor: Int): ColorQuantizer(source)

Creates a NeuQuant ColorQuantizer with the specified sampling factor.

Return

A NeuQuant ColorQuantizer instance configured with the specified sampling factor.

Parameters

samplingFactor

The sampling factor to use for the NeuQuant algorithm. Lower values result in better image quality at the cost of quantization speed. It must be between 1 and 30.