Depth24Image.st
changeset 8127 826558a642a9
parent 8121 e9b681715859
child 8133 436102c3dabc
--- a/Depth24Image.st	Tue Aug 29 21:59:53 2017 +0200
+++ b/Depth24Image.st	Tue Aug 29 22:29:25 2017 +0200
@@ -239,12 +239,11 @@
      Pixel values are reduced to a 0..255 grey level."
 
     depth == 8 ifTrue:[
-	photometric == #rgb ifTrue:[
-	    ^ Depth8Image
-		width:width
-		height:height
-		fromArray:(self threshold8BitGrayBits)
-	]
+        photometric == #rgb ifTrue:[
+            ^ (Depth8Image
+                width:width height:height fromArray:(self threshold8BitGrayBits))
+                photometric:#blackIs0    
+        ]
     ].
     ^ super asThresholdGrayImageDepth:depth
 
@@ -279,8 +278,8 @@
      (i asThresholdGrayImageDepth:8) asOrderedDitheredMonochromeImage inspect
     "
 
-    "Created: 8.6.1996 / 13:58:46 / cg"
-    "Modified: 10.6.1996 / 19:11:18 / cg"
+    "Created: / 08-06-1996 / 13:58:46 / cg"
+    "Modified: / 29-08-2017 / 22:28:55 / cg"
 !
 
 rgbImageAsDitheredPseudoFormOn:aDevice