--- a/Colormap.st Thu Feb 11 19:13:00 1999 +0100
+++ b/Colormap.st Thu Feb 11 19:16:28 1999 +0100
@@ -70,6 +70,10 @@
"Modified: 25.2.1997 / 19:00:31 / cg"
!
+new:numColors
+ ^ self withColors:(Array new:numColors withAll:Color black)
+!
+
redVector:r greenVector:g blueVector:b
"given vectors of red/green/and blue pixelValues,
return a new instance of myself.
@@ -300,6 +304,15 @@
!Colormap methodsFor:'misc'!
+grow:howBig
+ "change the receivers size - not allowed"
+
+ howBig == self size ifTrue:[^ self].
+
+ ^ self shouldNotImplement
+
+!
+
scaleValuesBy:scaleFactor
"multiply all values by scaleFactor; finally round to integer.
This can be used to brighten/darken an images colormap"
@@ -358,5 +371,5 @@
!Colormap class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libview/Colormap.st,v 1.24 1997-03-06 14:45:51 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libview/Colormap.st,v 1.25 1999-02-11 18:16:28 cg Exp $'
! !