Struct image::ico::IcoEncoder [−][src]
pub struct IcoEncoder<W: Write> { /* fields omitted */ }
ICO encoder
Implementations
impl<W: Write> IcoEncoder<W>
[src]
impl<W: Write> IcoEncoder<W>
[src]pub fn new(w: W) -> IcoEncoder<W>
[src]
Create a new encoder that writes its output to w
.
pub fn encode(
self,
data: &[u8],
width: u32,
height: u32,
color: ColorType
) -> ImageResult<()>
[src]
self,
data: &[u8],
width: u32,
height: u32,
color: ColorType
) -> ImageResult<()>
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.
Trait Implementations
impl<W: Write> ImageEncoder for IcoEncoder<W>
[src]
impl<W: Write> ImageEncoder for IcoEncoder<W>
[src]fn write_image(
self,
buf: &[u8],
width: u32,
height: u32,
color_type: ColorType
) -> ImageResult<()>
[src]
self,
buf: &[u8],
width: u32,
height: u32,
color_type: ColorType
) -> ImageResult<()>
Auto Trait Implementations
impl<W> RefUnwindSafe for IcoEncoder<W> where
W: RefUnwindSafe,
W: RefUnwindSafe,
impl<W> Send for IcoEncoder<W> where
W: Send,
W: Send,
impl<W> Sync for IcoEncoder<W> where
W: Sync,
W: Sync,
impl<W> Unpin for IcoEncoder<W> where
W: Unpin,
W: Unpin,
impl<W> UnwindSafe for IcoEncoder<W> where
W: UnwindSafe,
W: UnwindSafe,