Struct image::png::PNGEncoder [−][src]
pub struct PNGEncoder<W: Write> { /* fields omitted */ }
PNG encoder
Methods
impl<W: Write> PNGEncoder<W>[src]
impl<W: Write> PNGEncoder<W>pub fn new(w: W) -> PNGEncoder<W>[src]
pub fn new(w: W) -> PNGEncoder<W>Create a new encoder that writes its output to w
pub fn encode(
self,
data: &[u8],
width: u32,
height: u32,
color: ColorType
) -> Result<()>[src]
pub fn encode(
self,
data: &[u8],
width: u32,
height: u32,
color: ColorType
) -> Result<()>Encodes the image image
that has dimensions width and height
and ColorType c
Auto Trait Implementations
impl<W> Send for PNGEncoder<W> where
W: Send,
impl<W> Send for PNGEncoder<W> where
W: Send, impl<W> Sync for PNGEncoder<W> where
W: Sync,
impl<W> Sync for PNGEncoder<W> where
W: Sync,