Function load_png

Source
pub async fn load_png(
    file: File,
    demultiply: bool,
) -> Result<ImageBuffer<Rgba<u8>, Vec<u8>>, JsValue>
Expand description

Receives a File and returns the decoded PNG byte buffer.