java.lang.Object
ij.LookUpTable
This class represents a color look-up table.
-
Constructor Summary
ConstructorsConstructorDescriptionLookUpTable
(Image img) Constructs a LookUpTable object from an AWT Image.Constructs a LookUpTable object from a ColorModel. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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()
byte[]
int
byte[]
getReds()
boolean
Returnstrue
if this is a 256 entry grayscale LUT.
-
Constructor Details
-
LookUpTable
Constructs a LookUpTable object from an AWT Image. -
LookUpTable
Constructs a LookUpTable object from a ColorModel.
-
-
Method Details
-
getMapSize
public int getMapSize() -
getReds
public byte[] getReds() -
getGreens
public byte[] getGreens() -
getBlues
public byte[] getBlues() -
getColorModel
-
isGrayscale
public boolean isGrayscale()Returnstrue
if this is a 256 entry grayscale LUT.- See Also:
-
drawColorBar
-
drawUnscaledColorBar
-
createGrayscaleColorModel
-