Image.st
changeset 7996 a9afe1d564aa
parent 7995 2538002b8ba4
child 8025 2e4d3fedcbd3
--- a/Image.st	Thu Apr 06 13:10:01 2017 +0200
+++ b/Image.st	Thu Apr 06 13:36:22 2017 +0200
@@ -7313,7 +7313,9 @@
      ditherIds failed lastColor qScramble
      clrLookup error clr|
 
-    self depth ~~ 24 ifTrue:[^ nil].
+    self depth ~~ 24 ifTrue:[
+        ^ (Depth24Image fromImage:self) floydSteinbergDitheredDepth8BitsColors:colors map:aMapOrNil
+    ].
 
     "/ collect valid ditherColors ...
     aMapOrNil isNil ifTrue:[
@@ -7765,6 +7767,7 @@
     ^ pseudoBits
 
     "Modified: / 30-01-2017 / 19:58:45 / stefan"
+    "Modified: / 06-04-2017 / 13:32:12 / cg"
 !
 
 floydSteinbergDitheredDepth8BitsColors:fixColors nRed:nRed nGreen:nGreen nBlue:nBlue