[−][src]Trait image::ConvertBuffer
Provides color conversions for whole image buffers.
Required methods
fn convert(&self) -> T
Converts self
to a buffer of type T
A generic implementation is provided to convert any image buffer to a image buffer
based on a Vec<T>
.
Implementors
impl<'a, 'b, Container, FromType: Pixel + 'static, ToType: Pixel + 'static> ConvertBuffer<ImageBuffer<ToType, Vec<<ToType as Pixel>::Subpixel>>> for ImageBuffer<FromType, Container> where
Container: Deref<Target = [FromType::Subpixel]>,
ToType: FromColor<FromType>,
FromType::Subpixel: 'static,
ToType::Subpixel: 'static,
[src]
Container: Deref<Target = [FromType::Subpixel]>,
ToType: FromColor<FromType>,
FromType::Subpixel: 'static,
ToType::Subpixel: 'static,