public class SampledComponentColorModel extends ColorModel
Modifier and Type | Field and Description |
---|---|
private static int[] |
BITS |
private ColorSubsampling |
subsampling |
pixel_bits, transferType
BITMASK, 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, toString
private static final int[] BITS
private final ColorSubsampling subsampling
public SampledComponentColorModel(ColorSpace cspace, ColorSubsampling subsampling)
public boolean isCompatibleRaster(Raster raster)
isCompatibleRaster
in class ColorModel
public boolean isCompatibleSampleModel(SampleModel sm)
isCompatibleSampleModel
in class ColorModel
public SampleModel createCompatibleSampleModel(int w, int h)
createCompatibleSampleModel
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 inData)
getAlpha
in class ColorModel
public int getBlue(Object inData)
getBlue
in class ColorModel
public int getGreen(Object inData)
getGreen
in class ColorModel
public int getRed(Object inData)
getRed
in class ColorModel
public int getRGB(Object inData)
getRGB
in class ColorModel
Copyright © 2017 dcm4che.org. All rights reserved.