Struct IcoFrame
pub struct IcoFrame<'a> { /* private fields */ }
An ICO image entry
Implementations
impl<'a> IcoFrame<'a>
fn with_encoded(encoded_image: impl Into<Cow<'a, [u8]>>, width: u32, height: u32, color_type: ExtendedColorType) -> ImageResult<Self>Construct a new
IcoFrameusing a pre-encoded PNG or BMPThe
widthandheightmust be between 1 and 256 (inclusive).fn as_png(buf: &[u8], width: u32, height: u32, color_type: ExtendedColorType) -> ImageResult<Self>Construct a new
IcoFrameby encodingbufas a PNGThe
widthandheightmust be between 1 and 256 (inclusive)