public class UnsignedIntColorModel extends ColorModel
Modifier and Type | Field and Description |
---|---|
private ComponentColorModel |
helper |
private int |
nChannels |
pixel_bits, transferType
BITMASK, OPAQUE, TRANSLUCENT
Constructor and Description |
---|
UnsignedIntColorModel(int pixelBits,
int dataType,
int nChannels) |
Modifier and Type | Method and Description |
---|---|
WritableRaster |
createCompatibleWritableRaster(int w,
int h) |
int |
getAlpha(int pixel) |
int |
getAlpha(Object data) |
int |
getBlue(int pixel) |
int |
getBlue(Object data) |
private int |
getComponent(int pixel,
int index) |
Object |
getDataElements(int rgb,
Object pixel) |
int |
getGreen(int pixel) |
int |
getGreen(Object data) |
int |
getRed(int pixel) |
int |
getRed(Object data) |
boolean |
isCompatibleRaster(Raster raster) |
private static int[] |
makeBitArray(int nChannels,
int nBits) |
coerceData, createCompatibleSampleModel, equals, finalize, getAlphaRaster, getColorSpace, getComponents, getComponents, getComponentSize, getComponentSize, getDataElement, getDataElement, getDataElements, getDataElements, getNormalizedComponents, getNormalizedComponents, getNumColorComponents, getNumComponents, getPixelSize, getRGB, getRGB, getRGBdefault, getTransferType, getTransparency, getUnnormalizedComponents, hasAlpha, hashCode, isAlphaPremultiplied, isCompatibleSampleModel, toString
private int nChannels
private ComponentColorModel helper
public UnsignedIntColorModel(int pixelBits, int dataType, int nChannels) throws IOException
IOException
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
public int getAlpha(Object data)
getAlpha
in class ColorModel
public int getRed(Object data)
getRed
in class ColorModel
public int getGreen(Object data)
getGreen
in class ColorModel
public int getBlue(Object data)
getBlue
in class ColorModel
private int getComponent(int pixel, int index)
private static int[] makeBitArray(int nChannels, int nBits)
Copyright © 2017 Open Microscopy Environment