class: Depth1Image
added: #clearMaskedPixels
fix drawing of colored Depth1Images (do not draw all-black)
--- 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 $'
! !