class: ImageEditor
authorStefan Vogel <sv@exept.de>
Fri, 23 May 2014 11:37:27 +0200
changeset 3122 8b3c2b6d3fb2
parent 3121 b88abf599041
child 3123 5bdc0a26498c
class: ImageEditor changed: #colorMapMode: #doNewImage Generate ImageMask instead of Depth1Image for masks
ImageEditor.st
--- a/ImageEditor.st	Fri May 23 11:32:56 2014 +0200
+++ b/ImageEditor.st	Fri May 23 11:37:27 2014 +0200
@@ -5192,7 +5192,7 @@
                     maskThreshold := 0.1.
                     maskImage := Depth1Image fromImage:(image asThresholdMonochromeImage:maskThreshold). 
                 ] ifFalse:[
-                    maskImage := Depth1Image extent:image extent.
+                    maskImage := ImageMask extent:image extent.
                     maskImage bits:(ByteArray 
                                         new:(maskImage bytesPerRow * maskImage height)
                                         withAll:16rFF).
@@ -6681,7 +6681,7 @@
         LastColormapMode := cMapString.
 
         (cMapMode startsWith: 'mask') ifTrue:[
-            image mask: (Depth1Image width: width height: height depth: 1 fromArray: (ByteArray new: width*height)) clearMaskedPixels
+            image mask: (ImageMask width: width height: height depth: 1 fromArray: (ByteArray new: width*height)) clearMaskedPixels
         ].
         image colorMap: cMap.
         (imageEditView image: image) notNil ifTrue:[