Skip to main content

flip_rows

Function flip_rows 

Source
pub fn flip_rows(w: u32, h: u32, rgba: &mut [u8])
Expand description

Reverse the row order of an RGBA8 buffer in place.

OpenGL’s glReadPixels returns the bottom row first; image files store the top row first.