|
Trispark JDT 2.50.13 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.image.ColorModel
com.archimed.dicom.image.GrayColorModel
public class GrayColorModel
This class represents a ColorModel for use with Grayscale images. For images with pixel depth 8, it is possible to use IndexColorModel. But for higher pixel depths, use an int[] for pixeldata in combination with this ColorModel (where the window/level has to be adjustable).
| Field Summary |
|---|
| Fields inherited from class java.awt.image.ColorModel |
|---|
pixel_bits, transferType |
| Fields inherited from interface java.awt.Transparency |
|---|
BITMASK, OPAQUE, TRANSLUCENT |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.awt.image.ColorModel |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public void setWindowLevel(WL wl)
WLpublic int getAlpha(int pixel)
getAlpha in class java.awt.image.ColorModelpublic int getRed(int pixel)
getRed in class java.awt.image.ColorModelpublic int getGreen(int pixel)
getGreen in class java.awt.image.ColorModelpublic int getBlue(int pixel)
getBlue in class java.awt.image.ColorModelpublic int getRGB(int pixel)
getRGB in class java.awt.image.ColorModelpublic int getMax()
public int getMin()
|
Trispark JDT 2.50.13 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||