Skip to main content

swap_rb

Function swap_rb 

pub fn swap_rb(dest: &mut [u32], src: &[u32])
Expand description

Swizzles the byte order of 32-bit pixels, swapping R and B (RGBA ↔ BGRA).

  • dest destination pixels
  • src source pixels