Struct TiffEncoder

struct TiffEncoder<W> { ... }

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 w

fn encode(self: Self, buf: &[u8], width: u32, height: u32, color_type: ExtendedColorType) -> ImageResult<()>

Encodes the image image that has dimensions width and height and ColorType c.

16-bit types assume the buffer is native endian.

Panics

Panics if width * height * color_type.bytes_per_pixel() != data.len().

impl<T> Any for TiffEncoder<W>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for TiffEncoder<W>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for TiffEncoder<W>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for TiffEncoder<W>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Pointable for TiffEncoder<W>

unsafe fn init(init: <T as Pointable>::Init) -> usize
unsafe fn deref<'a>(ptr: usize) -> &'a T
unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
unsafe fn drop(ptr: usize)

impl<T, U> Into for TiffEncoder<W>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for TiffEncoder<W>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for TiffEncoder<W>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl<W> Freeze for TiffEncoder<W>

impl<W> RefUnwindSafe for TiffEncoder<W>

impl<W> Send for TiffEncoder<W>

impl<W> Sync for TiffEncoder<W>

impl<W> Unpin for TiffEncoder<W>

impl<W> UnwindSafe for TiffEncoder<W>

impl<W: Write + Seek> ImageEncoder for TiffEncoder<W>

fn write_image(self: Self, buf: &[u8], width: u32, height: u32, color_type: ExtendedColorType) -> ImageResult<()>