Fast and simple image rotating in Rust with flipping and flopping in-place.
cargo add fast_transpose
transpose_rgb(
&img,
&mut transposed,
dimensions.0 as usize,
dimensions.1 as usize,
FlipMode::NoFlip,
FlopMode::NoFlop,
)
.unwrap();
Turning off unsafe
feature will activate forbid unsafe
mode.
This project is licensed under either of
at your option.