Struct OpenExrEncoder
pub struct OpenExrEncoder<W>(/* private field */);
A thin wrapper that implements ImageEncoder for OpenEXR images. Will behave like image::codecs::openexr::write_buffer.
Implementations
impl<W> OpenExrEncoder<W>
fn new(write: W) -> SelfCreate an
ImageEncoder. Does not write anything yet. Writing later will behave likeimage::codecs::openexr::write_buffer.
Trait Implementations
impl<W> ImageEncoder for OpenExrEncoder<W>
where
W: Write + Seek,
fn write_image(self, buf: &[u8], width: u32, height: u32, color_type: ExtendedColorType) -> ImageResult<()>Writes the complete image.
Assumes the writer is buffered. In most cases, you should wrap your writer in a
BufWriterfor best performance.
impl<W: Debug> Debug for OpenExrEncoder<W>
fn fmt(&self, f: &mut Formatter<'_>) -> Result