Struct image::ico::ICOEncoder [−][src]
pub struct ICOEncoder<W: Write> { /* fields omitted */ }
ICO encoder
Methods
impl<W: Write> ICOEncoder<W>[src]
impl<W: Write> ICOEncoder<W>pub fn new(w: W) -> ICOEncoder<W>[src]
pub fn new(w: W) -> ICOEncoder<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. The dimensions of the image
must be between 1 and 256 (inclusive) or an error will be returned.
Auto Trait Implementations
impl<W> Send for ICOEncoder<W> where
W: Send,
impl<W> Send for ICOEncoder<W> where
W: Send, impl<W> Sync for ICOEncoder<W> where
W: Sync,
impl<W> Sync for ICOEncoder<W> where
W: Sync,