pub trait Pixel<'a, T: Type, C: Color>: AsRef<[T]> {
fn to_vec(&self) -> Vec<T> { ... }
fn to_vec_f(&self) -> Vec<f64> { ... }
fn to_pixel_vec(&self) -> PixelVec<T> { ... }
fn to_pixel_vec_f(&self) -> PixelVec<f64> { ... }
fn is_true(&self) -> bool { ... }
fn is_false(&self) -> bool { ... }
fn map<F: FnMut(&T) -> T>(&self, f: F) -> PixelVec<T> { ... }
fn iter(&self) -> Iter<'_, T> { ... }
}
Expand description
Pixel is used to access chunks of image data
Provided Methods§
sourcefn to_pixel_vec(&self) -> PixelVec<T>
fn to_pixel_vec(&self) -> PixelVec<T>
Create a new PixelVec
sourcefn to_pixel_vec_f(&self) -> PixelVec<f64>
fn to_pixel_vec_f(&self) -> PixelVec<f64>
Create a new PixelVec
sourcefn map<F: FnMut(&T) -> T>(&self, f: F) -> PixelVec<T>
fn map<F: FnMut(&T) -> T>(&self, f: F) -> PixelVec<T>
Create a new PixelVec by executing f
for each channel