Skip to main content

pack_ico

Function pack_ico 

Source
pub fn pack_ico(entries: &[(u32, Vec<u8>)]) -> Vec<u8> 
Expand description

Pack (pixel_size, png_bytes) entries into a multi-size .ico. Sizes above 256 are skipped (the format caps at 256; 256 is encoded as width byte 0 per the spec).