pub trait PixelBufferCursorExt {
// Required methods
fn seek_to_pixel(
&mut self,
x: usize,
y: usize,
bytes_per_row: usize,
) -> Result<u64>;
fn read_pixel(&mut self) -> Result<[u8; 4]>;
}Expand description
Extension trait for io::Cursor to add pixel buffer specific operations