ij
public class LookUpTable extends java.lang.Object
Constructor and Description |
---|
LookUpTable(java.awt.image.ColorModel cm)
Constructs a LookUpTable object from a ColorModel.
|
LookUpTable(java.awt.Image img)
Constructs a LookUpTable object from an AWT Image.
|
Modifier and Type | Method and Description |
---|---|
static java.awt.image.ColorModel |
createGrayscaleColorModel(boolean invert) |
void |
drawColorBar(java.awt.Graphics g,
int x,
int y,
int width,
int height) |
void |
drawUnscaledColorBar(ImageProcessor ip,
int x,
int y,
int width,
int height) |
byte[] |
getBlues() |
java.awt.image.ColorModel |
getColorModel() |
byte[] |
getGreens() |
int |
getMapSize() |
byte[] |
getReds() |
boolean |
isGrayscale()
Returns
true if this is a 256 entry grayscale LUT. |
public LookUpTable(java.awt.Image img)
public LookUpTable(java.awt.image.ColorModel cm)
public int getMapSize()
public byte[] getReds()
public byte[] getGreens()
public byte[] getBlues()
public java.awt.image.ColorModel getColorModel()
public boolean isGrayscale()
true
if this is a 256 entry grayscale LUT.ImageProcessor.isColorLut()
public void drawColorBar(java.awt.Graphics g, int x, int y, int width, int height)
public void drawUnscaledColorBar(ImageProcessor ip, int x, int y, int width, int height)
public static java.awt.image.ColorModel createGrayscaleColorModel(boolean invert)