Function imagequant_sys::liq_get_palette [] [src]

pub unsafe extern "C" fn liq_get_palette<'a>(
    result: &'a mut liq_result
) -> &'a liq_palette

Returns pointer to palette optimized for image that has been quantized or remapped (final refinements are applied to the palette during remapping).

It's valid to call this method before remapping, if you don't plan to remap any images or want to use same palette for multiple images.

liq_palette->count contains number of colors (up to 256), liq_palette->entries[n] contains RGBA value for nth palette color.