public class SignedColorModel extends ColorModel
Modifier and Type | Field and Description |
---|---|
private ComponentColorModel |
helper |
private int |
max |
private int |
nChannels |
private int |
pixelBits |
pixel_bits, transferType
BITMASK, OPAQUE, TRANSLUCENT
Constructor and Description |
---|
SignedColorModel(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) |
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) |
private int |
rescale(int value) |
private int |
rescale(int value,
int max) |
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 pixelBits
private int nChannels
private ComponentColorModel helper
private int max
public SignedColorModel(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 rescale(int value, int max)
private int rescale(int value)
private static int[] makeBitArray(int nChannels, int nBits)
Copyright © 2015 Open Microscopy Environment