Struct tiff::encoder::TiffEncoder  [−][src]
pub struct TiffEncoder<W> { /* fields omitted */ }Expand description
Tiff encoder.
With this type you can get a DirectoryEncoder or a ImageEncoder
to encode tiff ifd directories with images.
See DirectoryEncoder and ImageEncoder.
Examples
use tiff::encoder::*; let mut tiff = TiffEncoder::new(&mut file).unwrap(); tiff.write_image::<colortype::RGB8>(100, 100, &image_data).unwrap();
Implementations
Create a DirectoryEncoder to encode an ifd directory.
pub fn new_image<C: ColorType>(
    &mut self, 
    width: u32, 
    height: u32
) -> TiffResult<ImageEncoder<'_, W, C>>
pub fn new_image<C: ColorType>(
    &mut self, 
    width: u32, 
    height: u32
) -> TiffResult<ImageEncoder<'_, W, C>>
Create an ‘ImageEncoder’ to encode an image one slice at a time.