Function imagequant_sys::liq_set_max_colors
[−]
[src]
pub unsafe extern "C" fn liq_set_max_colors(
attr: &mut liq_attr,
colors: c_int
) -> liq_error
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.