fn with_rows<F>(
buffer: &mut [u8],
width: i32,
height: i32,
channels: usize,
top_down: bool,
func: F,
) -> 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.