Skip to content

image.decoders.png #

============================================================================Constants

fn decode #

fn decode(data []u8) !common.Image

decode decodes a PNG (or the first frame of an APNG) into an 8-bit RGBA image.

fn decode_animation #

fn decode_animation(data []u8) !common.Animation

decode_animation decodes an APNG into a common.Animation of 8-bit frames.

fn decode_color_corrected #

fn decode_color_corrected(data []u8, target_gamma f64) !common.Image

decode_color_corrected decodes with gAMA/cHRM color correction applied.