Change images to use ImageMask instances instead of Depth1Image instances as
authorStefan Vogel <sv@exept.de>
Fri, 23 May 2014 10:17:29 +0200
changeset 6479 388fa0684b52
parent 6478 32a7c396c27f
child 6480 065e6f5dbfbb
Change images to use ImageMask instances instead of Depth1Image instances as masks.
ImageMask.st
--- a/ImageMask.st	Fri May 23 10:13:25 2014 +0200
+++ b/ImageMask.st	Fri May 23 10:17:29 2014 +0200
@@ -9,8 +9,6 @@
  other person.  No title to or ownership of the software is
  hereby transferred.
 "
-
-
 "{ Package: 'stx:libview' }"
 
 Depth1Image subclass:#ImageMask
@@ -54,6 +52,13 @@
 
 ! !
 
+!ImageMask methodsFor:'initialization'!
+
+initialize
+    super initialize.
+    bitsPerSample := samplesPerPixel := 1.
+! !
+
 !ImageMask methodsFor:'private'!
 
 colormapFromImage:anImage
@@ -76,5 +81,6 @@
 !ImageMask class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview/ImageMask.st,v 1.3 2003-04-11 00:08:56 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/ImageMask.st,v 1.4 2014-05-23 08:17:29 stefan Exp $'
 ! !
+