Struct TiffEncoder
pub struct TiffEncoder<W> { /* private fields */ }
Encoder for tiff images
Implementations
impl<W: Write + Seek> TiffEncoder<W>
fn new(w: W) -> TiffEncoder<W>Create a new encoder that writes its output to
wfn encode(self, buf: &[u8], width: u32, height: u32, color_type: ExtendedColorType) -> ImageResult<()>See the trait method
write_imagefor more details.
Trait Implementations
impl<W: Write + Seek> ImageEncoder for TiffEncoder<W>
fn write_image(self, buf: &[u8], width: u32, height: u32, color_type: ExtendedColorType) -> ImageResult<()>Encodes the image
imagethat has dimensionswidthandheightandColorTypec.16-bit types assume the buffer is native endian.
Panics
Panics if
width * height * color_type.bytes_per_pixel() != data.len().fn set_icc_profile(&mut self, icc_profile: Vec<u8>) -> Result<(), UnsupportedError>