public class GrayColorModel
extends java.awt.image.ColorModel
Constructor and Description |
---|
GrayColorModel(int bits)
Constructs a GrayColorModel for the specified number of bits per pixel
|
GrayColorModel(int bits,
int max)
Constructs a GrayColorModel.
|
GrayColorModel(int bits,
int min,
int max)
Constructs a GrayColorModel.
|
Modifier and Type | Method and Description |
---|---|
int |
getAlpha(int pixel)
from java.awt.ColorModel
|
int |
getBlue(int pixel)
from java.awt.ColorModel
|
int |
getGreen(int pixel)
from java.awt.ColorModel
|
int |
getMax()
returns the maximum pixelvalue (specified in the constructor)
|
int |
getMin()
returns the minimum pixelvalue (specified in the constructor)
|
int |
getRed(int pixel)
from java.awt.ColorModel
|
int |
getRGB(int pixel)
from java.awt.ColorModel
|
void |
setWindowLevel(WL wl)
changes the current window/level - pair.
|
coerceData, createCompatibleSampleModel, createCompatibleWritableRaster, equals, finalize, getAlpha, getAlphaRaster, getBlue, getColorSpace, getComponents, getComponents, getComponentSize, getComponentSize, getDataElement, getDataElement, getDataElements, getDataElements, getDataElements, getGreen, getNormalizedComponents, getNormalizedComponents, getNumColorComponents, getNumComponents, getPixelSize, getRed, getRGB, getRGBdefault, getTransferType, getTransparency, getUnnormalizedComponents, hasAlpha, hashCode, isAlphaPremultiplied, isCompatibleRaster, isCompatibleSampleModel, toString
public GrayColorModel(int bits)
public GrayColorModel(int bits, int max)
bits
- - the number of bits per pixel.max
- - the biggest pixel value in the image.public GrayColorModel(int bits, int min, int max)
bits
- - the number of bits per pixel.min
- - the smallest pixel value in the image.max
- - the largest pixel value in the image.public void setWindowLevel(WL wl)
WL
public int getAlpha(int pixel)
getAlpha
in class java.awt.image.ColorModel
public int getRed(int pixel)
getRed
in class java.awt.image.ColorModel
public int getGreen(int pixel)
getGreen
in class java.awt.image.ColorModel
public int getBlue(int pixel)
getBlue
in class java.awt.image.ColorModel
public int getRGB(int pixel)
getRGB
in class java.awt.image.ColorModel
public int getMax()
public int getMin()