class

CrImage::ICO::Reader

Inherits Reference / Object

Reads ICO (Windows Icon) files

Supports both BMP and PNG encoded icons within ICO containers. Handles multi-resolution files and various bit depths (1, 4, 8, 24, 32-bit).

Class methods

read(path : String) : CrImage::Image

Reads ICO file and returns the largest icon

This is the standard read method that returns a single image. If the ICO contains multiple sizes, the largest is returned.

Source
read(io : IO) : CrImage::Image

Reads ICO from IO and returns the largest icon

Source
read_all(path : String) : Icon

Reads ICO file and returns all icons with metadata

Use this when you need access to all resolutions in the file.

Source
read_all(io : IO) : Icon

Reads all icons from IO

Source
read_config(path : String) : CrImage::Config

Reads configuration without decoding full image

Returns metadata for the largest icon. Much faster than full read when you only need to check dimensions or color model.

Source
read_config(io : IO) : CrImage::Config

Reads configuration from IO

Source