railo.runtime.img.filter
Class GrayscaleColormap
java.lang.Object
railo.runtime.img.filter.GrayscaleColormap
- All Implemented Interfaces:
- Colormap
public class GrayscaleColormap
- extends Object
- implements Colormap
A grayscale colormap. Black is 0, white is 1.
Method Summary |
int |
getColor(float v)
Convert a value in the range 0..1 to an RGB color. |
GrayscaleColormap
public GrayscaleColormap()
getColor
public int getColor(float v)
- Convert a value in the range 0..1 to an RGB color.
- Specified by:
getColor
in interface Colormap
- Parameters:
v
- a value in the range 0..1
- Returns:
- an RGB color
Copyright © 2012 Railo