Change images to use ImageMask instances instead of Depth1Image instances as
authorStefan Vogel <sv@exept.de>
Fri, 23 May 2014 10:27:37 +0200
changeset 3341 b37e37384f3e
parent 3340 96d5a7df1639
child 3342 cc75334b07bc
Change images to use ImageMask instances instead of Depth1Image instances as masks.
Icon.st
--- a/Icon.st	Fri May 23 09:19:21 2014 +0200
+++ b/Icon.st	Fri May 23 10:27:37 2014 +0200
@@ -316,23 +316,26 @@
 !
 
 stxIconTransparent
+    <resource: #image>
     "This resource specification was automatically generated
      by the ImageEditor of ST/X."
-
     "Do not manually edit this!! If it is corrupted,
      the ImageEditor may not be able to read the specification."
-
     "
      self stxIconTransparent inspect
      ImageEditor openOnClass:self andSelector:#stxIconTransparent
-     Icon flushCachedIcons
-    "
-
-    <resource: #image>
-
-    ^Icon
-        constantNamed:'Icon class stxIconTransparent'
-        ifAbsentPut:[(Depth4Image new) width: 48; height: 48; photometric:(#palette); bitsPerSample:(#[4]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
+     Icon flushCachedIcons"
+    
+    ^ Icon constantNamed:'Icon class stxIconTransparent'
+        ifAbsentPut:[
+            (Depth4Image new)
+                width:48;
+                height:48;
+                photometric:(#palette);
+                bitsPerSample:(#[ 4 ]);
+                samplesPerPixel:(1);
+                bits:(ByteArray 
+                            fromPackedString:'
 DQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQ
 DQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQ@@DQDQDQDQDQDQDQDP@QDQDQDQDQDQDP@@@QDQDQDQDQDQDQD@DQDQDQDQDQDQDP@@@QDQ
 DQDQDQDQDQ@ADQDQDQDQDQDQDP@@@QDQDQDQDQDQD @QDQDQDQDQDQDQDP@@@!!DQDQDQDQDQH@HQDQDQDQDQDQDQDP@@@!!DQDQDQDQDR@BDQDQDQDQDQDQDQ
@@ -345,31 +348,43 @@
 DQDQDQDQDQDQDQDP@@@ADQDQDQDP@ADQDQDQDQDQDQDQDQD@@@@QDQDQDQDR@@DQDQDQDQDQDQDQDP@@@@DQDQDQDQDQ@@HQDQDQDQDQDQDQD@@@@ADQDQDQ
 DQDQD@@QDQDQDQDQDQDQ@@@@@QDQDQDQDQDQDP@ADQDQDQDQDQDQ@@@@HQDQDQDQDQDQDQ@ADQDQDQDQDQDQ@@@BDQDQDQDQDQDQDQD@DQDQDQDQDQDQD@@!!
 DQDQDQDQDQDQDQDPHQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQ@QDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQ
-DQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQ') ; colorMapFromArray:#[0 204 51 25 25 25 127 229 153]; mask:((Depth1Image new) width: 48; height: 48; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
+DQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQDQ');
+                colorMapFromArray:#[ 0 204 51 25 25 25 127 229 153 ];
+                mask:((ImageMask new)
+                            width:48;
+                            height:48;
+                            bits:(ByteArray 
+                                        fromPackedString:'
 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@G@@@A @@O @@C@@@O @@F@@@O @@\@@@O0@@<@@@O0@A8@@@G0@C0@@@G0@G @@@C8@O@@@@C8@O@@
 @@A<@^@@@@A<@<@@@@@>A8@@@@@_C0@@@@@_G @@@@@O/@@@@@@O>@@@@@@G<@@@@@@G<@@@@@@C8@@@@@@G8@@@@@@O<@@@@@@_<@@@@@@>>@@@@@A<^@@@
 @@C8O@@@@@O0O@@@@@_ G @@@@?@C0@@@A>@A0@@@C<@A8@@@O8@@<@@@_0@@\@@@? @@N@@@? @@F@@@?@@@C@@@^@@@A @@@@@@@ @@@@@@@@@@@@@@@@@
-@@@@@@@@@@@@@@@@@@@@@@@@') ; yourself); yourself]
+@@@@@@@@@@@@@@@@@@@@@@@@');
+                            yourself);
+                yourself
+        ]
 !
 
 stxIconTransparent2
+    <resource: #image>
     "This resource specification was automatically generated
      by the ImageEditor of ST/X."
-
     "Do not manually edit this!! If it is corrupted,
      the ImageEditor may not be able to read the specification."
-
     "
      self stxIconTransparent2 inspect
      ImageEditor openOnClass:self andSelector:#stxIconTransparent2
-     Icon flushCachedIcons
-    "
-
-    <resource: #image>
-
-    ^Icon
-        constantNamed:'Icon class stxIconTransparent2'
-        ifAbsentPut:[(Depth4Image new) width: 48; height: 48; photometric:(#palette); bitsPerSample:(#[4]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
+     Icon flushCachedIcons"
+    
+    ^ Icon constantNamed:'Icon class stxIconTransparent2'
+        ifAbsentPut:[
+            (Depth4Image new)
+                width:48;
+                height:48;
+                photometric:(#palette);
+                bitsPerSample:(#[ 4 ]);
+                samplesPerPixel:(1);
+                bits:(ByteArray 
+                            fromPackedString:'
 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@ @@@@@@@@@@H@H@@@@@@@@@@@@@@@@@@@@@@@@@@@@B@B@@@@@@@@@@@@@@
@@ -382,31 +397,43 @@
 @@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@B@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H@H@@@@@@@@@@@@@@@@@@@@@@@@@
 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
-@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[0 204 51 25 25 25 127 229 153]; mask:((Depth1Image new) width: 48; height: 48; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@');
+                colorMapFromArray:#[ 0 204 51 25 25 25 127 229 153 ];
+                mask:((ImageMask new)
+                            width:48;
+                            height:48;
+                            bits:(ByteArray 
+                                        fromPackedString:'
 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@G@@@A @@O @@C@@@O @@F@@@O @@\@@@O0@@<@@@O0@A8@@@G0@A0@@@G8@C @@@C8@G@@@@C<@N@@
 @@A<@\@@@@A>@8@@@@@>A8@@@@@_C0@@@@@_G @@@@@O/@@@@@@O>@@@@@@G<@@@@@@G<@@@@@@C8@@@@@@G8@@@@@@O<@@@@@@_<@@@@@@>>@@@@@A<^@@@
 @@C8O@@@@@O0O@@@@@_ G @@@@?@C0@@@A>@A0@@@C<@@8@@@O8@@<@@@_0@@\@@@? @@N@@@? @@F@@@?@@@C@@@^@@@A@@@@@@@@ @@@@@@@@@@@@@@@@@
-@@@@@@@@@@@@@@@@@@@@@@@@') ; yourself); yourself]
+@@@@@@@@@@@@@@@@@@@@@@@@');
+                            yourself);
+                yourself
+        ]
 !
 
 stxIconTransparent3
+    <resource: #image>
     "This resource specification was automatically generated
      by the ImageEditor of ST/X."
-
     "Do not manually edit this!! If it is corrupted,
      the ImageEditor may not be able to read the specification."
-
     "
      self stxIconTransparent3 inspect
      ImageEditor openOnClass:self andSelector:#stxIconTransparent3
-     Icon flushCachedIcons
-    "
-
-    <resource: #image>
-
-    ^Icon
-        constantNamed:'Icon class stxIconTransparent3'
-        ifAbsentPut:[(Depth4Image new) width: 48; height: 48; photometric:(#palette); bitsPerSample:(#[4]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
+     Icon flushCachedIcons"
+    
+    ^ Icon constantNamed:'Icon class stxIconTransparent3'
+        ifAbsentPut:[
+            (Depth4Image new)
+                width:48;
+                height:48;
+                photometric:(#palette);
+                bitsPerSample:(#[ 4 ]);
+                samplesPerPixel:(1);
+                bits:(ByteArray 
+                            fromPackedString:'
 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@ @@@@@@@@@@H@H@@@@@@@@@@@@@@@@@@@@@@@@@@@@B@B@@@@@@@@@@@@@@
@@ -419,11 +446,20 @@
 @@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@B@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@H@H@@@@@@@@@@@@@@@@@@@@@@@@@
 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
-@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[0 204 51 25 25 25 0 102 26]; mask:((Depth1Image new) width: 48; height: 48; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@');
+                colorMapFromArray:#[ 0 204 51 25 25 25 0 102 26 ];
+                mask:((ImageMask new)
+                            width:48;
+                            height:48;
+                            bits:(ByteArray 
+                                        fromPackedString:'
 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@G@@@A @@O @@C@@@O @@F@@@O @@\@@@O0@@<@@@O0@A8@@@G0@A0@@@G8@C @@@C8@G@@@@C<@N@@
 @@A<@\@@@@A>@8@@@@@>A8@@@@@_C0@@@@@_G @@@@@O/@@@@@@O>@@@@@@G<@@@@@@G<@@@@@@C8@@@@@@G8@@@@@@O<@@@@@@_<@@@@@@>>@@@@@A<^@@@
 @@C8O@@@@@O0O@@@@@_ G @@@@?@C0@@@A>@A0@@@C<@@8@@@O8@@<@@@_0@@\@@@? @@N@@@? @@F@@@?@@@C@@@^@@@A@@@@@@@@ @@@@@@@@@@@@@@@@@
-@@@@@@@@@@@@@@@@@@@@@@@@') ; yourself); yourself]
+@@@@@@@@@@@@@@@@@@@@@@@@');
+                            yourself);
+                yourself
+        ]
 ! !
 
 !Icon class methodsFor:'obsolete image specs'!
@@ -553,11 +589,12 @@
 !Icon class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview2/Icon.st,v 1.38 2011-04-08 11:54:42 stefan Exp $'
+    ^ '$Header: /cvs/stx/stx/libview2/Icon.st,v 1.39 2014-05-23 08:27:37 stefan Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libview2/Icon.st,v 1.38 2011-04-08 11:54:42 stefan Exp $'
+    ^ '$Header: /cvs/stx/stx/libview2/Icon.st,v 1.39 2014-05-23 08:27:37 stefan Exp $'
 ! !
 
+
 Icon initialize!