(x: s32, y: s32, comp: s32, image_data: *u8) -> string
Makes Windows ICO files from pictures: create_ico_file from pixels, or
create_ico_file_from_bitmap_filename from an image file. Each icon holds five sizes, 256 down to 16.
#import "Ico_File";
Makes Windows ICO files from pictures: create_ico_file from pixels, or
create_ico_file_from_bitmap_filename from an image file. Each icon holds five sizes, 256 down to 16.
How many bytes one square icon image takes in an ICO file: the pixels with their header, the
transparency mask, and the total. comp is bytes per pixel (3 or 4).
The total of get_bytes_for_image for an image of size by size pixels.
assert(get_total_bytes_for_size(4, 16) == 2216);↗Reads an image file (any format the image decoder knows) and returns it as an ICO file, as
create_ico_file does. Returns an empty string after logging an error if it cannot be read or decoded.