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