Function image::codecs::bmp::decoder::with_rows

source ·
fn with_rows<F>(
    buffer: &mut [u8],
    width: i32,
    height: i32,
    channels: usize,
    top_down: bool,
    func: F,
) -> Result<()>
where F: FnMut(&mut [u8]) -> Result<()>,
Expand description

Call the provided function on each row of the provided buffer, returning Err if the provided function returns an error, extends the buffer if it’s not large enough.