Function read_png_bytes

Source
fn read_png_bytes<P: AsRef<Path>>(path: P) -> Result<RgbImage, MapError>
Expand description

Returns a vector of bytes from a png file encoded with rgb8, meaning each pixel is represented by 3 bytes