Struct IcoEncoder
pub struct IcoEncoder<W: Write> { /* private fields */ }
ICO encoder
Implementations
impl<W: Write> IcoEncoder<W>
fn new(w: W) -> IcoEncoder<W>Create a new encoder that writes its output to
w.fn encode_images(self, images: &[IcoFrame<'_>]) -> ImageResult<()>Takes some
IcoFrames and encodes them into an ICO.imagesis a list of images, usually ordered by dimension, which must be between 1 and 65535 (inclusive) in length.
Trait Implementations
impl<W: Write> ImageEncoder for IcoEncoder<W>
fn write_image(self, buf: &[u8], width: u32, height: u32, color_type: ExtendedColorType) -> ImageResult<()>Write an ICO image with the specified width, height, and color type.
For color types with 16-bit per channel or larger, the contents of
bufshould be in native endian.WARNING: In image 0.23.14 and earlier this method erroneously expected buf to be in big endian.