Skip to main content

read

Function read 

Source
pub fn read(bytes: &[u8], params: RawParams) -> Result<Image, CliError>
Expand description

Interpret bytes as raw row-major pixels per params.

ยงErrors

CliError::RawConfig if the buffer length does not equal width * height * 4, or CliError::Codec for out-of-range dimensions.