equal
deleted
inserted
replaced
36 " |
36 " |
37 ! |
37 ! |
38 |
38 |
39 documentation |
39 documentation |
40 " |
40 " |
41 Reader for mac osx icon files. |
41 Reader/writer for mac osx icon files. |
42 |
42 |
43 These files are actually bundles of a sequence of icons (in possibly different resolutions, |
43 These files are actually bundles of a sequence of icons (in possibly different resolutions, |
44 colors and sizes). |
44 colors and sizes). |
45 When such a file is read, I return the first image as usual, |
45 When such a file is read, I return the first image as usual, |
46 and all images as an imagesequence. |
46 and all images as an imagesequence. |
48 Only a subset of the supported image formats are supported by the writer |
48 Only a subset of the supported image formats are supported by the writer |
49 (i.e. JPEG and PNG based image encodings only). |
49 (i.e. JPEG and PNG based image encodings only). |
50 This means, that only 10.8-and later icon files are really generated. |
50 This means, that only 10.8-and later icon files are really generated. |
51 |
51 |
52 caveat: |
52 caveat: |
53 only a subset of the possibly formats are supported when reading. |
53 only a subset of the possibly formats are supported. |
54 |
54 |
55 [See also:] |
55 [See also:] |
56 Image Form Icon |
56 Image Form Icon |
57 GIFReader JPEGReader PNGReader TIFFReader WindowsIconReader |
57 GIFReader JPEGReader PNGReader TIFFReader WindowsIconReader |
58 http://en.wikipedia.org/wiki/Apple_Icon_Image_format |
58 http://en.wikipedia.org/wiki/Apple_Icon_Image_format |
246 nextPutAll:(tempStream contents). |
246 nextPutAll:(tempStream contents). |
247 |
247 |
248 " |
248 " |
249 self |
249 self |
250 save:(Image fromScreen:(0@0 corner:16@16)) |
250 save:(Image fromScreen:(0@0 corner:16@16)) |
251 onFile:'test.icns' |
251 onFile:'test.icns'. |
252 " |
252 |
|
253 'test.icns' asFilename exists. |
|
254 |
|
255 Image fromFile:'test.icns' |
|
256 |
|
257 MacOSXIconReader |
|
258 saveAll:{ |
|
259 (Image fromScreen:(0@0 corner:16@16)) . |
|
260 (Image fromScreen:(0@0 corner:32@32)) . |
|
261 (Image fromScreen:(0@0 corner:64@64)) . |
|
262 (Image fromScreen:(0@0 corner:128@128)) . |
|
263 } |
|
264 onFile:'test.icns' |
|
265 " |
|
266 |
|
267 "Modified (comment): / 22-02-2017 / 00:57:58 / cg" |
253 ! ! |
268 ! ! |
254 |
269 |
255 !MacOSXIconReader methodsFor:'private'! |
270 !MacOSXIconReader methodsFor:'private'! |
256 |
271 |
257 colormap4 |
272 colormap4 |