Carbon


Icon Size Constants

Header: Files.h

enum {
    kLargeIconSize = 256,
    kLarge4BitIconSize = 512,
    kLarge8BitIconSize = 1024,
    kSmallIconSize = 64,
    kSmall4BitIconSize = 128,
    kSmall8BitIconSize = 256
};

Constant descriptions

kLargeIconSize

Large black-and-white icon with mask. Corresponding resource type: 'ICN#'.

kLarge4BitIconSize

Large 4-bit color icon. Corresponding resource type: 'icl4’.

kLarge8BitIconSize

Large 8-bit color icon. Corresponding resource type: 'icl8'.

kSmallIconSize

Small black-and-white icon with mask. Corresponding resource type: 'ics#'.

kSmall4BitIconSize

Small 4-bit color icon. Corresponding resource type: 'ics4'.

kSmall8BitIconSize

Small 8-bit color icon. Corresponding resource type: 'ics8'.

These constants are for allocating storage for icon data in the desktop database. For each icon type, the amount of bytes you should allocate are shown.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)