java.awt.image
public class ComponentColorModel extends ColorModel
Constructor Summary | |
---|---|
ComponentColorModel(ColorSpace colorSpace, int[] bits, boolean hasAlpha, boolean isAlphaPremultiplied, int transparency, int transferType) | |
ComponentColorModel(ColorSpace colorSpace, boolean hasAlpha, boolean isAlphaPremultiplied, int transparency, int transferType)
Construct a new ComponentColorModel.
|
Method Summary | |
---|---|
ColorModel | coerceData(WritableRaster raster, boolean isAlphaPremultiplied) |
SampleModel | createCompatibleSampleModel(int w, int h)
Creates a SampleModel whose arrangement of pixel
data is compatible to this ColorModel .
|
WritableRaster | createCompatibleWritableRaster(int w, int h) |
boolean | equals(Object obj) |
int | getAlpha(int pixel) |
int | getAlpha(Object inData) |
WritableRaster | getAlphaRaster(WritableRaster raster) |
int | getBlue(int pixel) |
int | getBlue(Object inData) |
int[] | getComponents(int pixel, int[] components, int offset) |
int[] | getComponents(Object pixel, int[] components, int offset) |
int | getDataElement(int[] components, int offset) |
Object | getDataElements(int rgb, Object pixel) |
Object | getDataElements(int[] components, int offset, Object obj) |
int | getGreen(int pixel) |
int | getGreen(Object inData) |
int | getRed(int pixel) |
int | getRed(Object inData) |
int | getRGB(int pixel) |
int | getRGB(Object inData) |
boolean | isCompatibleRaster(Raster raster) |
boolean | isCompatibleSampleModel(SampleModel sm) |
Parameters: colorSpace The colorspace for this color model. hasAlpha True if there is an alpha component. isAlphaPremultiplied True if colors are already multiplied by alpha. transparency The type of alpha values. transferType Data type of pixel sample values.
Since: 1.4
SampleModel
whose arrangement of pixel
data is compatible to this ColorModel
.
Parameters: w the number of pixels in the horizontal direction. h the number of pixels in the vertical direction.
Parameters: inData pixel data of transferType, as returned by the getDataElements method in SampleModel.