#REFACTORING by stefan
class: Depth8Image
changed: #anyImageAsPseudoFormOn:
use #blackColor and #whiteColor
--- a/Depth8Image.st Wed Jul 20 11:26:02 2016 +0200
+++ b/Depth8Image.st Wed Jul 20 11:28:13 2016 +0200
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
"
COPYRIGHT (c) 1993 by Claus Gittinger
All Rights Reserved
@@ -496,9 +498,9 @@
"/ color := colorMap at:mapIndex.
color := self colorFromValue:aColorIndex.
color brightness > 0.4 ifTrue:[
- color := Color white.
+ color := aDevice whiteColor.
] ifFalse:[
- color := Color black.
+ color := aDevice blackColor.
].
imgMap at:mapIndex put:(color onDevice:aDevice).
].