Struct image::ico::ICOEncoder
[−]
[src]
pub struct ICOEncoder<W: Write> { // some fields omitted }
ICO encoder
Methods
impl<W: Write> ICOEncoder<W>
fn new(w: W) -> ICOEncoder<W>
Create a new encoder that writes its output to w
.
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
. The dimensions of the image
must be between 1 and 256 (inclusive) or an error will be returned.