Use ImageMask instead of Depth1Image for masks
authorStefan Vogel <sv@exept.de>
Fri, 23 May 2014 11:32:19 +0200
changeset 3120 93de037400b6
parent 3119 0a80c1bf3dde
child 3121 b88abf599041
Use ImageMask instead of Depth1Image for masks
MenuEditor.st
--- a/MenuEditor.st	Fri May 23 11:32:02 2014 +0200
+++ b/MenuEditor.st	Fri May 23 11:32:19 2014 +0200
@@ -3199,147 +3199,231 @@
 !MenuEditor::Item class methodsFor:'image specs'!
 
 iconDelayedLinkedMenu
+    <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 iconDelayedLinkedMenu inspect
      ImageEditor openOnClass:self andSelector:#iconDelayedLinkedMenu
-     Icon flushCachedIcons
-    "
-
-    <resource: #image>
-
-    ^Icon
-	constantNamed:'MenuEditor::Item class iconDelayedLinkedMenu'
-	ifAbsentPut:[(Depth4Image new) width: 20; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
+     Icon flushCachedIcons"
+    
+    ^ Icon constantNamed:'MenuEditor::Item class iconDelayedLinkedMenu'
+        ifAbsentPut:[
+            (Depth4Image new)
+                width:20;
+                height:16;
+                photometric:(#palette);
+                bitsPerSample:(#( 4 ));
+                samplesPerPixel:(1);
+                bits:(ByteArray 
+                            fromPackedString:'
 @@@@@@@@@@@@@@DQDQDQDQDQDR@AH"H"H"H"H"H0@@@BH"H"@@@BL@QDPBH"H"@@H#@DQDPBH@H"@"H0ADQDPBA@H"H"L@@@QDP@Q@@@@C@ADPQDQDQ@DQD:
-@RH QDQDQ@H"L@D"H QDQD@"H#@A@@@@@DP@@@@0@QDQDQA@DQDQL@D"H"H @"H"H#@BL3L3L3L3L3L0@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 127 127 127 255 0 0]; mask:((Depth1Image new) width: 20; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???0???0???0???0???0???0???0???0???0???0???0???0???0???0???0???0') ; yourself); yourself]
+@RH QDQDQ@H"L@D"H QDQD@"H#@A@@@@@DP@@@@0@QDQDQA@DQDQL@D"H"H @"H"H#@BL3L3L3L3L3L0@@@@@@@@@@@a');
+                colorMapFromArray:#[ 0 0 0 255 255 255 170 170 170 127 127 127 255 0 0 ];
+                mask:((ImageMask new)
+                            width:20;
+                            height:16;
+                            bits:(ByteArray 
+                                        fromPackedString:'???0???0???0???0???0???0???0???0???0???0???0???0???0???0???0???0');
+                            yourself);
+                yourself
+        ]
 !
 
 iconDelayedMenu
+    <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 iconDelayedMenu inspect
      ImageEditor openOnClass:self andSelector:#iconDelayedMenu
-     Icon flushCachedIcons
-    "
-
-    <resource: #image>
-
-    ^Icon
-	constantNamed:'MenuEditor::Item class iconDelayedMenu'
-	ifAbsentPut:[(Depth2Image new) width: 20; height: 16; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@UUUUUVA*****,F***@B0Z***@+A****J,F*****0@@@@@@AUUUUUXF*****0Z****+A@@@@@LEUUUUU0Z****+B?????<@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 127 127 127]; mask:((Depth1Image new) width: 20; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???0???0???0???0???0???0???0???0???0???0???0???0???0???0???0???0') ; yourself); yourself]
+     Icon flushCachedIcons"
+    
+    ^ Icon constantNamed:'MenuEditor::Item class iconDelayedMenu'
+        ifAbsentPut:[
+            (Depth2Image new)
+                width:20;
+                height:16;
+                photometric:(#palette);
+                bitsPerSample:(#( 2 ));
+                samplesPerPixel:(1);
+                bits:(ByteArray 
+                            fromPackedString:'@@@@@@@UUUUUVA*****,F***@B0Z***@+A****J,F*****0@@@@@@AUUUUUXF*****0Z****+A@@@@@LEUUUUU0Z****+B?????<@@@@@@@b');
+                colorMapFromArray:#[ 0 0 0 255 255 255 170 170 170 127 127 127 ];
+                mask:((ImageMask new)
+                            width:20;
+                            height:16;
+                            bits:(ByteArray 
+                                        fromPackedString:'???0???0???0???0???0???0???0???0???0???0???0???0???0???0???0???0');
+                            yourself);
+                yourself
+        ]
 !
 
 iconItem
+    <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 iconItem inspect
      ImageEditor openOnClass:self andSelector:#iconItem
-     Icon flushCachedIcons
-    "
-
-    <resource: #image>
-
-    ^Icon
-	constantNamed:'MenuEditor::Item class iconItem'
-	ifAbsentPut:[(Depth2Image new) width: 20; height: 16; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'UUUUUUUUUUUUUP@@@@@@EUUUUU Z****+A.?/;+,F:::/>0[++>:;A...++,F::?..0Z****+B?????<@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 127 127 127]; mask:((Depth1Image new) width: 20; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@???0???0???0???0???0???0???0???0???0???0???0@@@@@@@@@@@@') ; yourself); yourself]
+     Icon flushCachedIcons"
+    
+    ^ Icon constantNamed:'MenuEditor::Item class iconItem'
+        ifAbsentPut:[
+            (Depth2Image new)
+                width:20;
+                height:16;
+                photometric:(#palette);
+                bitsPerSample:(#( 2 ));
+                samplesPerPixel:(1);
+                bits:(ByteArray 
+                            fromPackedString:'UUUUUUUUUUUUUP@@@@@@EUUUUU Z****+A.?/;+,F:::/>0[++>:;A...++,F::?..0Z****+B?????<@@@@@@@@@@@@@@@@@@@@@@@@@@@b');
+                colorMapFromArray:#[ 0 0 0 255 255 255 170 170 170 127 127 127 ];
+                mask:((ImageMask new)
+                            width:20;
+                            height:16;
+                            bits:(ByteArray 
+                                        fromPackedString:'@@@@@@@@???0???0???0???0???0???0???0???0???0???0???0@@@@@@@@@@@@');
+                            yourself);
+                yourself
+        ]
 !
 
 iconLinkedMenu
+    <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 iconLinkedMenu inspect
      ImageEditor openOnClass:self andSelector:#iconLinkedMenu
-     Icon flushCachedIcons
-    "
-
-    <resource: #image>
-
-    ^Icon
-	constantNamed:'MenuEditor::Item class iconLinkedMenu'
-	ifAbsentPut:[(Depth4Image new) width: 20; height: 16; photometric:(#palette); bitsPerSample:(#(4)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
+     Icon flushCachedIcons"
+    
+    ^ Icon constantNamed:'MenuEditor::Item class iconLinkedMenu'
+        ifAbsentPut:[
+            (Depth4Image new)
+                width:20;
+                height:16;
+                photometric:(#palette);
+                bitsPerSample:(#( 4 ));
+                samplesPerPixel:(1);
+                bits:(ByteArray 
+                            fromPackedString:'
 @@@@@@@@@@@@@@QDQDQDQDQDQA@DH"H"H"H"H"HPABH@@@H"H"H"D@PQ@3L0DQDQDQ@D@@L3L0@@@@@PADPCL3L0PCADD@P"@@@3L0@3@!!@DH"H"@3L3L3@P
-AADQDQ@3L3L3@@P@@@@@@3L3LA@DQDQDQD@@L0PPABH"H"H"HC@"D@P"H"H"H"@BH!!@BDQDQDQDQDQDP@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 127 127 127 170 170 170 255 0 0 255 255 255]; mask:((Depth1Image new) width: 20; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???0???0???0???0???0???0???0???0???0???0???0???0???0???0???0???0') ; yourself); yourself]
+AADQDQ@3L3L3@@P@@@@@@3L3LA@DQDQDQD@@L0PPABH"H"H"HC@"D@P"H"H"H"@BH!!@BDQDQDQDQDQDP@@@@@@@@@@@@@@@a');
+                colorMapFromArray:#[ 0 0 0 127 127 127 170 170 170 255 0 0 255 255 255 ];
+                mask:((ImageMask new)
+                            width:20;
+                            height:16;
+                            bits:(ByteArray 
+                                        fromPackedString:'???0???0???0???0???0???0???0???0???0???0???0???0???0???0???0???0');
+                            yourself);
+                yourself
+        ]
 !
 
 iconMenu
+    <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 iconMenu inspect
      ImageEditor openOnClass:self andSelector:#iconMenu
-     Icon flushCachedIcons
-    "
-
-    <resource: #image>
-
-    ^Icon
-	constantNamed:'MenuEditor::Item class iconMenu'
-	ifAbsentPut:[(Depth2Image new) width: 20; height: 16; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@?????=C*****$N*****P5UUUUUC@@@@@DO?????P:****)C*****$MUUUUUP0@@@@AC?????4N*****P:****)BUUUUUT@@@@@@@b') ; colorMapFromArray:#[0 0 0 127 127 127 170 170 170 255 255 255]; mask:((Depth1Image new) width: 20; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???0???0???0???0???0???0???0???0???0???0???0???0???0???0???0???0') ; yourself); yourself]
+     Icon flushCachedIcons"
+    
+    ^ Icon constantNamed:'MenuEditor::Item class iconMenu'
+        ifAbsentPut:[
+            (Depth2Image new)
+                width:20;
+                height:16;
+                photometric:(#palette);
+                bitsPerSample:(#( 2 ));
+                samplesPerPixel:(1);
+                bits:(ByteArray 
+                            fromPackedString:'@@@@@@@?????=C*****$N*****P5UUUUUC@@@@@DO?????P:****)C*****$MUUUUUP0@@@@AC?????4N*****P:****)BUUUUUT@@@@@@@b');
+                colorMapFromArray:#[ 0 0 0 127 127 127 170 170 170 255 255 255 ];
+                mask:((ImageMask new)
+                            width:20;
+                            height:16;
+                            bits:(ByteArray 
+                                        fromPackedString:'???0???0???0???0???0???0???0???0???0???0???0???0???0???0???0???0');
+                            yourself);
+                yourself
+        ]
 !
 
 iconSeparator
+    <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 iconSeparator inspect
      ImageEditor openOnClass:self andSelector:#iconSeparator
-     Icon flushCachedIcons
-    "
-
-    <resource: #image>
-
-    ^Icon
-	constantNamed:'MenuEditor::Item class iconSeparator'
-	ifAbsentPut:[(Depth2Image new) width: 20; height: 16; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'UUUUUUUUUUUUUP@@@@@@EUUUUU Z****+A*****,F????:0[@@@@[A)UUUU,F*****0Z****+B?????<@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255 170 170 170 127 127 127]; mask:((Depth1Image new) width: 20; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@???0???0???0???0???0???0???0???0???0???0???0@@@@@@@@@@@@') ; yourself); yourself]
+     Icon flushCachedIcons"
+    
+    ^ Icon constantNamed:'MenuEditor::Item class iconSeparator'
+        ifAbsentPut:[
+            (Depth2Image new)
+                width:20;
+                height:16;
+                photometric:(#palette);
+                bitsPerSample:(#( 2 ));
+                samplesPerPixel:(1);
+                bits:(ByteArray 
+                            fromPackedString:'UUUUUUUUUUUUUP@@@@@@EUUUUU Z****+A*****,F????:0[@@@@[A)UUUU,F*****0Z****+B?????<@@@@@@@@@@@@@@@@@@@@@@@@@@@b');
+                colorMapFromArray:#[ 0 0 0 255 255 255 170 170 170 127 127 127 ];
+                mask:((ImageMask new)
+                            width:20;
+                            height:16;
+                            bits:(ByteArray 
+                                        fromPackedString:'@@@@@@@@???0???0???0???0???0???0???0???0???0???0???0@@@@@@@@@@@@');
+                            yourself);
+                yourself
+        ]
 !
 
 iconSliceMenu
+    <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 iconSliceMenu inspect
      ImageEditor openOnClass:self andSelector:#iconSliceMenu
-     Icon flushCachedIcons
-    "
-
-    <resource: #image>
-
-    ^Icon
-	constantNamed:'MenuEditor::Item class iconSliceMenu'
-	ifAbsentPut:[(Depth2Image new) width: 20; height: 16; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@O?????0:*****C/?6??XN:*[*) ;*).*&C.*&:*XN5U[UU :*****C*****(@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 127 127 127 170 170 170 255 255 255]; mask:((Depth1Image new) width: 20; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@???0???0???0???0???0???0???0???0???0???0???0@@@@@@@@@@@@') ; yourself); yourself]
+     Icon flushCachedIcons"
+    
+    ^ Icon constantNamed:'MenuEditor::Item class iconSliceMenu'
+        ifAbsentPut:[
+            (Depth2Image new)
+                width:20;
+                height:16;
+                photometric:(#palette);
+                bitsPerSample:(#( 2 ));
+                samplesPerPixel:(1);
+                bits:(ByteArray 
+                            fromPackedString:'@@@@@@@@@@@@@@@@@@@@O?????0:*****C/?6??XN:*[*) ;*).*&C.*&:*XN5U[UU :*****C*****(@@@@@@@@@@@@@@@@@@@@@@@@@@@b');
+                colorMapFromArray:#[ 0 0 0 127 127 127 170 170 170 255 255 255 ];
+                mask:((ImageMask new)
+                            width:20;
+                            height:16;
+                            bits:(ByteArray 
+                                        fromPackedString:'@@@@@@@@???0???0???0???0???0???0???0???0???0???0???0@@@@@@@@@@@@');
+                            yourself);
+                yourself
+        ]
 ! !
 
 !MenuEditor::Item class methodsFor:'instance creation'!