Struct image::LumaA
[−]
[src]
pub struct LumaA<T: Primitive> { pub data: [T; 2], }
Grayscale colors + alpha channel
Fields
data |
pub struct LumaA<T: Primitive> { pub data: [T; 2], }
Grayscale colors + alpha channel
data |
impl<T: Primitive + 'static> Pixel for LumaA<T>
type Subpixel = T
fn channel_count() -> u8
fn color_model() -> &'static str
fn color_type() -> ColorType
fn channels(&self) -> &[T]
fn channels_mut(&mut self) -> &mut [T]
fn channels4(&self) -> (T, T, T, T)
fn from_channels(a: T, b: T, c: T, d: T) -> LumaA<T>
fn from_slice<'a>(slice: &'a [T]) -> &'a LumaA<T>
fn from_slice_mut<'a>(slice: &'a mut [T]) -> &'a mut LumaA<T>
fn to_rgb(&self) -> Rgb<T>
fn to_rgba(&self) -> Rgba<T>
fn to_luma(&self) -> Luma<T>
fn to_luma_alpha(&self) -> LumaA<T>
fn map<F>(&self, f: F) -> LumaA<T> where F: Fn(T) -> T
fn apply<F>(&mut self, f: F) where F: Fn(T) -> T
fn map_with_alpha<F, G>(&self, f: F, g: G) -> LumaA<T> where F: Fn(T) -> T, G: Fn(T) -> T
fn apply_with_alpha<F, G>(&mut self, f: F, g: G) where F: Fn(T) -> T, G: Fn(T) -> T
fn map2<F>(&self, other: &Self, f: F) -> LumaA<T> where F: Fn(T, T) -> T
fn apply2<F>(&mut self, other: &LumaA<T>, f: F) where F: Fn(T, T) -> T
fn invert(&mut self)
fn blend(&mut self, other: &LumaA<T>)
impl<T: Primitive> Index<usize> for LumaA<T>
impl<T: Primitive> IndexMut<usize> for LumaA<T>
impl<T: Hash + Primitive> Hash for LumaA<T>
fn hash<__HT: Hasher>(&self, __arg_0: &mut __HT)
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
impl<T: Copy + Primitive> Copy for LumaA<T>
impl<T: Debug + Primitive> Debug for LumaA<T>
impl<T: Clone + Primitive> Clone for LumaA<T>
fn clone(&self) -> LumaA<T>
fn clone_from(&mut self, source: &Self)
impl<T: Eq + Primitive> Eq for LumaA<T>
impl<T: PartialEq + Primitive> PartialEq for LumaA<T>