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.

images is 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 buf should be in native endian.

WARNING: In image 0.23.14 and earlier this method erroneously expected buf to be in big endian.

Auto Trait Implementations

impl<W> Freeze for IcoEncoder<W> where W: Freeze,

impl<W> RefUnwindSafe for IcoEncoder<W> where W: RefUnwindSafe,

impl<W> Send for IcoEncoder<W> where W: Send,

impl<W> Sync for IcoEncoder<W> where W: Sync,

impl<W> Unpin for IcoEncoder<W> where W: Unpin,

impl<W> UnsafeUnpin for IcoEncoder<W> where W: UnsafeUnpin,

impl<W> UnwindSafe for IcoEncoder<W> where W: UnwindSafe,

Blanket Implementations

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for IcoEncoder<W> where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for IcoEncoder<W> where ST: ?Sized, DT: ?Sized,

impl<T> Any for IcoEncoder<W> where T: 'static + ?Sized,

impl<T> Borrow<T> for IcoEncoder<W> where T: ?Sized,

impl<T> BorrowMut<T> for IcoEncoder<W> where T: ?Sized,

impl<T> From<T> for IcoEncoder<W>

impl<T> IntoEither for IcoEncoder<W>

impl<T> Pointable for IcoEncoder<W>

impl<T> Read<Exclusive, BecauseExclusive> for IcoEncoder<W> where T: ?Sized,

impl<T, U> Into<U> for IcoEncoder<W> where U: From<T>,

impl<T, U> TryFrom<U> for IcoEncoder<W> where U: Into<T>,

impl<T, U> TryInto<U> for IcoEncoder<W> where U: TryFrom<T>,