Skip to main content

decode

Function decode 

Source
pub fn decode(
    data: &[u8],
    done: impl FnOnce(Result<PremultipliedImage, Error>) + 'static,
)
Expand description

Decodes data, handing the result to done: before returning, or later on the calling thread. Data of no type decode_image recognizes fails before returning, with its error.