Use ImageMask instead of Depth1Image for masks
authorStefan Vogel <sv@exept.de>
Fri, 23 May 2014 11:32:24 +0200
changeset 4589 bf0969baace0
parent 4588 7aebb93f46c6
child 4590 23281f4d51e8
Use ImageMask instead of Depth1Image for masks
DSVColumnView.st
--- a/DSVColumnView.st	Fri May 23 11:31:42 2014 +0200
+++ b/DSVColumnView.st	Fri May 23 11:32:24 2014 +0200
@@ -297,23 +297,34 @@
 !
 
 rowSelectorImage
+    <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 rowSelectorImage inspect
      ImageEditor openOnClass:self andSelector:#rowSelectorImage
-     Icon flushCachedIcons
-    "
-
-    <resource: #image>
-
-    ^Icon
-        constantNamed:#'DSVColumnView class rowSelectorImage'
-        ifAbsentPut:[(Depth2Image new) width: 11; height: 11; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@0@@@1@@?1P@@A4@EW=@G?? O?:@@C(@?2 @@2@@@0@@') ; colorMapFromArray:#[0 0 0 255 255 255 127 127 127 170 170 170]; mask:((Depth1Image new) width: 11; height: 11; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'C@@N@@<@?8C?0O? ?<C? @<@C @L@@@a') ; yourself); yourself]
+     Icon flushCachedIcons"
+    
+    ^ Icon constantNamed:#'DSVColumnView class rowSelectorImage'
+        ifAbsentPut:[
+            (Depth2Image new)
+                width:11;
+                height:11;
+                photometric:(#palette);
+                bitsPerSample:(#( 2 ));
+                samplesPerPixel:(1);
+                bits:(ByteArray 
+                            fromPackedString:'@0@@@1@@?1P@@A4@EW=@G?? O?:@@C(@?2 @@2@@@0@@');
+                colorMapFromArray:#[ 0 0 0 255 255 255 127 127 127 170 170 170 ];
+                mask:((ImageMask new)
+                            width:11;
+                            height:11;
+                            bits:(ByteArray fromPackedString:'C@@N@@<@?8C?0O? ?<C? @<@C @L@@@a');
+                            yourself);
+                yourself
+        ]
 ! !
 
 !DSVColumnView class methodsFor:'signal constants'!
@@ -4785,10 +4796,10 @@
 !DSVColumnView class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg2/DSVColumnView.st,v 1.295 2014-03-20 16:55:58 stefan Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg2/DSVColumnView.st,v 1.296 2014-05-23 09:32:24 stefan Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libwidg2/DSVColumnView.st,v 1.295 2014-03-20 16:55:58 stefan Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg2/DSVColumnView.st,v 1.296 2014-05-23 09:32:24 stefan Exp $'
 ! !