pub struct WbmpEncoder<W> { /* private fields */ }Expand description
Encoder for Wbmp images.
Implementations§
Source§impl<W: Write> WbmpEncoder<W>
impl<W: Write> WbmpEncoder<W>
pub fn new(writer: W) -> Self
pub fn with_threshold(self, threshold: u8) -> Self
Trait Implementations§
Source§impl<W: Write> ImageEncoder for WbmpEncoder<W>
impl<W: Write> ImageEncoder for WbmpEncoder<W>
Source§fn write_image(
self,
buf: &[u8],
width: u32,
height: u32,
color_type: ExtendedColorType,
) -> Result<(), ImageError>
fn write_image( self, buf: &[u8], width: u32, height: u32, color_type: ExtendedColorType, ) -> Result<(), ImageError>
Writes all the bytes in an image to the encoder. Read more
Source§fn set_icc_profile(
&mut self,
icc_profile: Vec<u8>,
) -> Result<(), UnsupportedError>
fn set_icc_profile( &mut self, icc_profile: Vec<u8>, ) -> Result<(), UnsupportedError>
Set the ICC profile to use for the image. Read more
Source§fn set_exif_metadata(&mut self, exif: Vec<u8>) -> Result<(), UnsupportedError>
fn set_exif_metadata(&mut self, exif: Vec<u8>) -> Result<(), UnsupportedError>
Set the EXIF metadata to use for the image. Read more