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

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.