-
Notifications
You must be signed in to change notification settings - Fork 1
ICO420
jtippet edited this page Mar 23, 2019
·
1 revision
When storing a bitmap in an ICO file, the ICO file also requires a mask. The mask specifies which pixels are transparent: both for painting, and also possibly for hit-testing. For example, if the user clicks on a masked-out pixel of an icon, the GUI framework might choose to ignore the click.
The mask and the bitmap are stored separately, but they must have the same dimensions. For example, if the bitmap is 32x32 pixels, then you also need a 32x32 pixel mask.
You will receive error ICO420 if you specify both a mask and a bitmap, but they don't have the same dimensions.