public class SampledComponentColorModel extends ColorModel
| Modifier and Type | Field and Description |
|---|---|
private static int[] |
BITS |
private ColorSubsampling |
subsampling |
pixel_bits, transferTypeBITMASK, OPAQUE, TRANSLUCENT| Constructor and Description |
|---|
SampledComponentColorModel(ColorSpace cspace,
ColorSubsampling subsampling) |
| Modifier and Type | Method and Description |
|---|---|
SampleModel |
createCompatibleSampleModel(int w,
int h) |
int |
getAlpha(int pixel) |
int |
getAlpha(Object inData) |
int |
getBlue(int pixel) |
int |
getBlue(Object inData) |
int |
getGreen(int pixel) |
int |
getGreen(Object inData) |
int |
getRed(int pixel) |
int |
getRed(Object inData) |
int |
getRGB(Object inData) |
boolean |
isCompatibleRaster(Raster raster) |
boolean |
isCompatibleSampleModel(SampleModel sm) |
coerceData, createCompatibleWritableRaster, equals, finalize, getAlphaRaster, getColorSpace, getComponents, getComponents, getComponentSize, getComponentSize, getDataElement, getDataElement, getDataElements, getDataElements, getDataElements, getNormalizedComponents, getNormalizedComponents, getNumColorComponents, getNumComponents, getPixelSize, getRGB, getRGBdefault, getTransferType, getTransparency, getUnnormalizedComponents, hasAlpha, hashCode, isAlphaPremultiplied, toStringprivate static final int[] BITS
private final ColorSubsampling subsampling
public SampledComponentColorModel(ColorSpace cspace, ColorSubsampling subsampling)
public boolean isCompatibleRaster(Raster raster)
isCompatibleRaster in class ColorModelpublic boolean isCompatibleSampleModel(SampleModel sm)
isCompatibleSampleModel in class ColorModelpublic SampleModel createCompatibleSampleModel(int w, int h)
createCompatibleSampleModel in class ColorModelpublic int getAlpha(int pixel)
getAlpha in class ColorModelpublic int getBlue(int pixel)
getBlue in class ColorModelpublic int getGreen(int pixel)
getGreen in class ColorModelpublic int getRed(int pixel)
getRed in class ColorModelpublic int getAlpha(Object inData)
getAlpha in class ColorModelpublic int getBlue(Object inData)
getBlue in class ColorModelpublic int getGreen(Object inData)
getGreen in class ColorModelpublic int getRed(Object inData)
getRed in class ColorModelpublic int getRGB(Object inData)
getRGB in class ColorModelCopyright © 2017 dcm4che.org. All rights reserved.