Trait dimage::Image
[−]
[src]
pub trait Image { type Bounds: Bounds<Index = Self::Index>; type Index: Copy; type Pixel; fn bounds(&self) -> &Self::Bounds; fn pixel(&self, index: Self::Index) -> Self::Pixel; }
Raster image trait.
Associated Types
Required Methods
Implementors
impl<P, B, C, T, I> Image for Bounded<P, C> where
P: Image<Bounds = B, Index = I, Pixel = T>,
B: Bounds<Index = I> + IsBoundless,
C: Bounds<Index = I>,
I: Copy,impl<'a, P, B, T, I> Image for Cloned<P> where
P: Image<Bounds = B, Index = I, Pixel = &'a T>,
B: Bounds<Index = I>,
T: Clone + 'a,
I: Copy,impl<T, I> Image for Fill<T, I> where
T: Copy,
I: Copy,impl<P, U, F, T> Image for Map<P, U, F> where
P: Image<Pixel = T>,
F: Fn(T) -> U,impl<S, P> Image for SubImage2<S, P> where
P: Image<Bounds = Size2<S>, Index = Vec2<S>>,
S: Copy + Ord + Zero,
Vec2<S>: Add<Output = Vec2<S>>,impl<P, F, I, J, B, T> Image for Transform<P, F, I> where
P: Image<Bounds = B, Index = J, Pixel = T>,
F: Fn(I) -> J,
I: Copy,
J: Copy,
B: Bounds<Index = J>,impl<T: Copy> Image for VecImage2<T>
impl<'a, T: 'a> Image for &'a VecImage2<T>