Function imagequant_sys::liq_set_max_colors
source · Expand description
Specifies maximum number of colors to use.
The default is 256. Instead of setting a fixed limit it’s better to use liq_set_quality()
.
The first argument is attributes object from liq_attr_create()
.
Returns LIQ_VALUE_OUT_OF_RANGE
if number of colors is outside the range 2-256.