--- a/Image.st Fri Nov 14 15:46:11 2014 +0100
+++ b/Image.st Sat Nov 15 16:57:13 2014 +0100
@@ -4272,9 +4272,9 @@
asGrayImageDepth:depth
"get a gray image from the receiver"
- ((self colorMap notNil and:[depth == self depth])
+ ((self colorMap notNil and:[depth <= 8 and:[depth >= self depth]])
or:[ self depth >= 8 "do need for dither" ]) ifTrue:[
- ^ self copyWithColorMapProcessing:[:clr | Color brightness:(clr brightness)].
+ ^ self copyWithColorMapProcessing:[:clr | Color brightness:(clr brightness)].
].
^ self asGrayImageDepth:depth dither:DitherAlgorithm.
@@ -14441,11 +14441,11 @@
!Image class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libview/Image.st,v 1.459 2014-11-10 22:24:12 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libview/Image.st,v 1.460 2014-11-15 15:57:13 cg Exp $'
!
version_CVS
- ^ '$Header: /cvs/stx/stx/libview/Image.st,v 1.459 2014-11-10 22:24:12 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libview/Image.st,v 1.460 2014-11-15 15:57:13 cg Exp $'
! !