Skip to main content

decode

Function decode 

Source
pub fn decode(params: &[u32], data: &[u8], background: Rgb) -> Image
Expand description

Decode a sixel string: params are the DCS parameters before q, data what follows it. Unset pixels are background (opaque) unless p2 is 1, when they stay see-through.