Trait rgb::FromSlice [−][src]
Cast a slice of component values (bytes) as a slice of RGB/RGBA pixels
If there’s any incomplete pixel at the end of the slice it is ignored.
Required methods
fn as_rgb(&self) -> &[RGB<T>]
[src]
Reinterpert slice as RGB pixels
fn as_rgba(&self) -> &[RGBA<T>]
[src]
Reinterpert slice as RGBA pixels
fn as_rgb_mut(&mut self) -> &mut [RGB<T>]
[src]
Reinterpert mutable slice as RGB pixels
fn as_rgba_mut(&mut self) -> &mut [RGBA<T>]
[src]
Reinterpert mutable slice as RGBA pixels
fn as_bgr(&self) -> &[BGR<T>]
[src]
Reinterpert slice as reverse-order BGR pixels
fn as_bgra(&self) -> &[BGRA<T>]
[src]
Reinterpert slice as reverse-order BGRA pixels
fn as_bgr_mut(&mut self) -> &mut [BGR<T>]
[src]
Reinterpert ntable slice as reverse-order BGR pixels
fn as_bgra_mut(&mut self) -> &mut [BGRA<T>]
[src]
Reinterpert mutable slice as reverse-order BGRA pixels