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