pub struct IcoEncoder<W: Write> { /* private fields */ }
Expand description

ICO encoder

Implementations

Create a new encoder that writes its output to w.

👎Deprecated: Use IcoEncoder::write_image instead. Beware that write_image has a different endianness convention

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.

Expects data to be big endian.

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

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

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.