Expand description
QOI image decoder for embedded applications.
tinyqoi
is a QOI image decoder mainly targeted at use with embedded_graphics
.
Visit https://qoiformat.org for additional information about the QOI format.
§Examples
A Qoi
image can be wrapped in an embedded-graphics
Image
to display it on any DrawTarget
which uses
Rgb888
colors:
use tinyqoi::Qoi;
use embedded_graphics::{prelude::*, image::Image};
// Parse QOI image.
let data = include_bytes!("../tests/colors.qoi");
let qoi = Qoi::new(data).unwrap();
// Draw image to display.
Image::new(&qoi, Point::zero()).draw(&mut display).unwrap();
Structs§
- Pixels
Iter - Iterator over the pixels of a QOI image.
- Qoi
- QOI image.
Enums§
- Error
- Error.