Package loci.formats.gui
Class Index16ColorModel
java.lang.Object
java.awt.image.ColorModel
loci.formats.gui.Index16ColorModel
- All Implemented Interfaces:
Transparency
ColorModel that handles 16 bits per channel lookup tables.
-
Field Summary
Fields inherited from class java.awt.image.ColorModel
pixel_bits, transferTypeFields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT -
Constructor Summary
ConstructorsConstructorDescriptionIndex16ColorModel(int bits, int size, short[][] table, boolean littleEndian) -
Method Summary
Modifier and TypeMethodDescriptioncreateCompatibleWritableRaster(int w, int h) intgetAlpha(int pixel) short[]Return the array of alpha color components.intgetBlue(int pixel) short[]getBlues()Return the array of blue color components.getDataElements(int rgb, Object pixel) intgetGreen(int pixel) short[]Return the array of green color components.intgetRed(int pixel) short[]getReds()Return the array of red color components.booleanisCompatibleRaster(Raster raster) Methods inherited from class java.awt.image.ColorModel
coerceData, createCompatibleSampleModel, equals, 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
-
Constructor Details
-
Index16ColorModel
public Index16ColorModel(int bits, int size, short[][] table, boolean littleEndian) throws IOException - Throws:
IOException
-
-
Method Details
-
getReds
public short[] getReds()Return the array of red color components. -
getGreens
public short[] getGreens()Return the array of green color components. -
getBlues
public short[] getBlues()Return the array of blue color components. -
getAlphas
public short[] getAlphas()Return the array of alpha color components. -
getDataElements
- Overrides:
getDataElementsin classColorModel
-
isCompatibleRaster
- Overrides:
isCompatibleRasterin classColorModel
-
createCompatibleWritableRaster
- Overrides:
createCompatibleWritableRasterin classColorModel
-
getAlpha
public int getAlpha(int pixel) - Specified by:
getAlphain classColorModel
-
getBlue
public int getBlue(int pixel) - Specified by:
getBluein classColorModel
-
getGreen
public int getGreen(int pixel) - Specified by:
getGreenin classColorModel
-
getRed
public int getRed(int pixel) - Specified by:
getRedin classColorModel
-