struct

CrImage::ICO::IconEntry

Inherits Struct / Value / Object

Represents a single icon entry in an ICO file

Each ICO file contains a directory of entries describing the images stored within. This struct holds the metadata for one such entry.

Constructors

new(width : Int32, height : Int32, color_count : Int32, planes : Int32, bit_count : Int32, size : Int32, offset : Int32)
Source

Instance methods

actual_height

Returns the actual height in pixels

In ICO format, a value of 0 represents 256 pixels.

Source
actual_width

Returns the actual width in pixels

In ICO format, a value of 0 represents 256 pixels.

Source
bit_count
Source
bit_count=(bit_count : Int32)
Source
color_count
Source
color_count=(color_count : Int32)
Source
height
Source
height=(height : Int32)
Source
offset
Source
offset=(offset : Int32)
Source
pixel_count

Returns total pixel count for size comparison

Used internally to find largest/smallest icons.

Source
planes
Source
planes=(planes : Int32)
Source
size
Source
size=(size : Int32)
Source
width
Source
width=(width : Int32)
Source