Struct dimage::png::enc::Encoder
[−]
[src]
pub struct Encoder { /* fields omitted */ }
PNG image encoder.
Methods
impl Encoder
[src]
fn encode<I>(&mut self, image: &I, w: &mut Write) -> Result<usize> where
I: Image<Bounds = Size2<Coord>, Index = Vec2<Coord>>,
I::Pixel: Pixel,
I: Image<Bounds = Size2<Coord>, Index = Vec2<Coord>>,
I::Pixel: Pixel,
fn encode_all<I>(&mut self, image: &I, w: &mut Write) -> Result<()> where
I: Image<Bounds = Size2<Coord>, Index = Vec2<Coord>>,
I::Pixel: Pixel,
I: Image<Bounds = Size2<Coord>, Index = Vec2<Coord>>,
I::Pixel: Pixel,
fn new<I>(image: &I) -> Encoder where
I: Image<Bounds = Size2<Coord>, Index = Vec2<Coord>>,
I::Pixel: Pixel,
I: Image<Bounds = Size2<Coord>, Index = Vec2<Coord>>,
I::Pixel: Pixel,
fn set_bit_depth(&mut self, bit_depth: u8) -> Result<()>
fn set_palette<T>(&mut self, palette: T) -> Result<()> where
T: IntoIterator<Item = Rgb<u8>>,
T: IntoIterator<Item = Rgb<u8>>,
fn start_chunk(
&mut self,
chunk: Chunk,
max_len: Option<u32>
) -> Option<ChunkWriter>
&mut self,
chunk: Chunk,
max_len: Option<u32>
) -> Option<ChunkWriter>