public class Index16ColorModel extends ColorModel
Modifier and Type | Field and Description |
---|---|
private short[] |
alphaShort
Lookup tables.
|
private short[] |
blueShort
Lookup tables.
|
private short[] |
greenShort
Lookup tables.
|
private int |
pixelBits |
private short[] |
redShort
Lookup tables.
|
pixel_bits, transferType
BITMASK, OPAQUE, TRANSLUCENT
Constructor and Description |
---|
Index16ColorModel(int bits,
int size,
short[][] table,
boolean littleEndian) |
Modifier and Type | Method and Description |
---|---|
WritableRaster |
createCompatibleWritableRaster(int w,
int h) |
int |
getAlpha(int pixel) |
short[] |
getAlphas()
Return the array of alpha color components.
|
int |
getBlue(int pixel) |
short[] |
getBlues()
Return the array of blue color components.
|
Object |
getDataElements(int rgb,
Object pixel) |
int |
getGreen(int pixel) |
short[] |
getGreens()
Return the array of green color components.
|
int |
getRed(int pixel) |
short[] |
getReds()
Return the array of red color components.
|
boolean |
isCompatibleRaster(Raster raster) |
coerceData, createCompatibleSampleModel, equals, finalize, getAlpha, getAlphaRaster, getBlue, getColorSpace, getComponents, getComponents, getComponentSize, getComponentSize, getDataElement, getDataElement, getDataElements, getDataElements, getGreen, getNormalizedComponents, getNormalizedComponents, getNumColorComponents, getNumComponents, getPixelSize, getRed, getRGB, getRGB, getRGBdefault, getTransferType, getTransparency, getUnnormalizedComponents, hasAlpha, hashCode, isAlphaPremultiplied, isCompatibleSampleModel, toString
private short[] redShort
private short[] greenShort
private short[] blueShort
private short[] alphaShort
private int pixelBits
public Index16ColorModel(int bits, int size, short[][] table, boolean littleEndian) throws IOException
IOException
public short[] getReds()
public short[] getGreens()
public short[] getBlues()
public short[] getAlphas()
public Object getDataElements(int rgb, Object pixel)
getDataElements
in class ColorModel
public boolean isCompatibleRaster(Raster raster)
isCompatibleRaster
in class ColorModel
public WritableRaster createCompatibleWritableRaster(int w, int h)
createCompatibleWritableRaster
in class ColorModel
public int getAlpha(int pixel)
getAlpha
in class ColorModel
public int getBlue(int pixel)
getBlue
in class ColorModel
public int getGreen(int pixel)
getGreen
in class ColorModel
public int getRed(int pixel)
getRed
in class ColorModel
Copyright © 2017 Open Microscopy Environment