class: Depth1Image
authorStefan Vogel <sv@exept.de>
Thu, 05 Jun 2014 17:41:27 +0200
changeset 6495 17a64286fe5e
parent 6494 e0f0e0570c4a
child 6496 614e100374da
class: Depth1Image added: #clearMaskedPixels fix drawing of colored Depth1Images (do not draw all-black)
Depth1Image.st
--- a/Depth1Image.st	Thu Jun 05 11:56:00 2014 +0200
+++ b/Depth1Image.st	Thu Jun 05 17:41:27 2014 +0200
@@ -167,6 +167,13 @@
     ^ self anyImageAsFormOn:aDevice
 !
 
+clearMaskedPixels
+    colorMap isNil ifTrue:[
+        "this works only for b/w images"
+        super clearMaskedPixels.
+    ].
+!
+
 greyImageAsFormOn:aDevice
     "convert a greyscale image to a device form"
 
@@ -774,10 +781,10 @@
 !Depth1Image class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview/Depth1Image.st,v 1.64 2014-05-23 14:35:38 stefan Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/Depth1Image.st,v 1.65 2014-06-05 15:41:27 stefan Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libview/Depth1Image.st,v 1.64 2014-05-23 14:35:38 stefan Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/Depth1Image.st,v 1.65 2014-06-05 15:41:27 stefan Exp $'
 ! !