|
Smalltalk/X WebserverDocumentation of class 'MacOSXIconReader': |
||
|
|
Class: MacOSXIconReaderInheritance:Object | +--ImageReader | +--MacOSXIconReader
Description:
Reader/writer for mac osx icon files.
These files are actually bundles of a sequence of icons (in possibly different resolutions,
colors and sizes).
When such a file is read, I return the first image as usual,
and all images as an imagesequence.
Only a subset of the supported image formats are supported by the writer
(i.e. JPEG and PNG based image encodings only).
This means, that only 10.8-and later icon files are really generated.
[caveat:]
only a subset of the possibly formats are supported.
[notice:]
when reading an ICNS file with multiple icons in it,
the first image is returned as such, holding on the other images in its
imageFrames instvar.
Thus, the imageEditor will usually present the first of the images,
and offer a next-in-sequence button to step through them.
To get a collection of all images, collect the images from the sequence, as in:
someIcoImage imageFrames collect:#image
[supported formats:]
support format length pixels OS-version description
-----------------------------------------------------------------------------
r ICON 128 32 1.0 32×32 1-bit mono icon
r ICN# 256 32 6.0 32×32 1-bit mono icon with 1-bit mask
icm# 48 16 6.0 16×12 1 bit mono icon with 1-bit mask
icm4 96 16 7.0 16×12 4 bit icon
icm8 192 16 7.0 16×12 8 bit icon
r ics# 64 (32 img + 32 mask) 16 6.0 16×16 1-bit mask
r ics4 128 16 7.0 16×16 4-bit icon
r ics8 256 16 7.0 16x16 8 bit icon
is32 varies (768) 16 8.5 16×16 24-bit icon
r s8mk 256 16 8.5 16x16 8-bit mask
r icl4 512 32 7.0 32×32 4-bit icon
r icl8 1,024 32 7.0 32×32 8-bit icon
r il32 varies (3,072) 32 8.5 32x32 24-bit icon
r l8mk 1,024 32 8.5 32×32 8-bit mask
r ich# 288 48 8.5 48×48 1-bit mask
r ich4 1,152 48 8.5 48×48 4-bit icon
r ich8 2,304 48 8.5 48×48 8-bit icon
r ih32 varies (6,912) 48 8.5 48×48 24-bit icon
r h8mk 2,304 48 8.5 48×48 8-bit mask
r it32 varies (49,152) 128 10.0 128×128 24-bit icon
r t8mk 16,384 128 10.0 128×128 8-bit mask
r icp4 varies 16 10.7 16x16 icon in JPEG 2000 or PNG format
r icp5 varies 32 10.7 32x32 icon in JPEG 2000 or PNG format
icp6 varies 64 10.7 64x64 icon in JPEG 2000 or PNG format
r ic07 varies 128 10.7 128x128 icon in JPEG 2000 or PNG format
r ic08 varies 256 10.5 256×256 icon in JPEG 2000 or PNG format
r ic09 varies 512 10.5 512×512 icon in JPEG 2000 or PNG format
r ic10 varies 1024 10.7 1024×1024 in 10.7 (or 512x512@2x 'retina' in 10.8) icon in JPEG 2000 or PNG format
ic11 varies 32 10.8 16x16@2x 'retina' icon in JPEG 2000 or PNG format
ic12 varies 64 10.8 32x32@2x 'retina' icon in JPEG 2000 or PNG format
ic13 varies 256 10.8 128x128@2x 'retina' icon in JPEG 2000 or PNG format
ic14 varies 512 10.8 256x256@2x 'retina' icon in JPEG 2000 or PNG format
Other types (ignored):
'TOC ' varies 'Table of Contents'
a list of all image types in the file,
and their sizes (added in Mac OS X 10.7)
'icnV' 4 4-byte big endian float
- equal to the bundle version number of Icon Composer.app that created to icon
Related information:
Image
Form
Icon
GIFReader
JPEGReader
PNGReader
TIFFReader
WindowsIconReader
http://en.wikipedia.org/wiki/Apple_Icon_Image_format
Class protocol:initialization
Instance protocol:image reading
|
||
|
|
ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Wed, 17 Dec 2025 08:25:18 GMT
|