decode_into

Function decode_into 

Source
pub fn decode_into(
    pixels: &mut [u8],
    blurhash: &str,
    width: u32,
    height: u32,
    punch: f32,
) -> Result<(), Error>
Expand description

Decodes the given blurhash to an image of the specified size into an existing buffer.

The punch parameter can be used to de- or increase the contrast of the resulting image.