Struct image::bmp::BMPEncoder [−][src]
pub struct BMPEncoder<'a, W: 'a> { /* fields omitted */ }The representation of a BMP encoder.
Methods
impl<'a, W: Write + 'a> BMPEncoder<'a, W>[src]
impl<'a, W: Write + 'a> BMPEncoder<'a, W>pub fn new(w: &'a mut W) -> Self[src]
pub fn new(w: &'a mut W) -> SelfCreate a new encoder that writes its output to w.
pub fn encode(
&mut self,
image: &[u8],
width: u32,
height: u32,
c: ColorType
) -> Result<()>[src]
pub fn encode(
&mut self,
image: &[u8],
width: u32,
height: u32,
c: ColorType
) -> Result<()>Encodes the image image
that has dimensions width and height
and ColorType c.
Auto Trait Implementations
impl<'a, W> Send for BMPEncoder<'a, W> where
W: Send,
impl<'a, W> Send for BMPEncoder<'a, W> where
W: Send, impl<'a, W> Sync for BMPEncoder<'a, W> where
W: Sync,
impl<'a, W> Sync for BMPEncoder<'a, W> where
W: Sync,