Type Alias image::codecs::bmp::BMPEncoder

source ·
pub type BMPEncoder<'a, W> = BmpEncoder<'a, W>;
👎Deprecated: Use BmpEncoder instead
Expand description

BMP Encoder

An alias of BmpEncoder.

TODO: remove

Aliased Type§

struct BMPEncoder<'a, W> { /* private fields */ }

Implementations

source§

impl<'a, W: Write + 'a> BmpEncoder<'a, W>

source

pub fn new(w: &'a mut W) -> Self

Create a new encoder that writes its output to w.

source

pub fn encode( &mut self, image: &[u8], width: u32, height: u32, c: ColorType, ) -> ImageResult<()>

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

Trait Implementations

source§

impl<'a, W: Write> ImageEncoder for BmpEncoder<'a, W>

source§

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

Writes all the bytes in an image to the encoder. Read more