Struct IcoEncoder
struct IcoEncoder<W: Write> { ... }
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: 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.
impl<T> Any for IcoEncoder<W>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for IcoEncoder<W>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for IcoEncoder<W>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> From for IcoEncoder<W>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Pointable for IcoEncoder<W>
unsafe fn init(init: <T as Pointable>::Init) -> usizeunsafe fn deref<'a>(ptr: usize) -> &'a Tunsafe fn deref_mut<'a>(ptr: usize) -> &'a mut Tunsafe fn drop(ptr: usize)
impl<T, U> Into for IcoEncoder<W>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for IcoEncoder<W>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for IcoEncoder<W>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>
impl<W> Freeze for IcoEncoder<W>
impl<W> RefUnwindSafe for IcoEncoder<W>
impl<W> Send for IcoEncoder<W>
impl<W> Sync for IcoEncoder<W>
impl<W> Unpin for IcoEncoder<W>
impl<W> UnsafeUnpin for IcoEncoder<W>
impl<W> UnwindSafe for IcoEncoder<W>
impl<W: Write> ImageEncoder for IcoEncoder<W>
fn write_image(self: 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.