--- a/Image.st Mon Feb 16 14:22:47 2009 +0100
+++ b/Image.st Tue Feb 17 11:51:05 2009 +0100
@@ -4135,8 +4135,9 @@
asGrayImageDepth:depth
"get a gray image from the receiver"
- (self colorMap notNil and:[depth == self depth]) ifTrue:[
- ^ self copyWithColorMapProcessing:[:clr | Color brightness:(clr brightness)].
+ ((self colorMap notNil and:[depth == self depth])
+ or:[ self depth >= 8 "do need for dither" ]) ifTrue:[
+ ^ self copyWithColorMapProcessing:[:clr | Color brightness:(clr brightness)].
].
^ self asGrayImageDepth:depth dither:DitherAlgorithm.
@@ -14067,7 +14068,7 @@
!Image class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libview/Image.st,v 1.418 2008-12-22 14:33:22 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libview/Image.st,v 1.419 2009-02-17 10:51:05 sr Exp $'
! !
Image initialize!