public class LookUpTable extends Object
Constructor and Description |
---|
LookUpTable(ColorModel cm)
Constructs a LookUpTable object from a ColorModel.
|
LookUpTable(Image img)
Constructs a LookUpTable object from an AWT Image.
|
Modifier and Type | Method and 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)
Copyright © 1997–2020 NIH. All rights reserved.