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.

Create an ‘ImageEncoder’ to encode an image one slice at a time.

Convenience function to write an entire image from memory.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.