public class PaletteColorModel extends ColorModel
| Modifier and Type | Class and Description |
|---|---|
private static class |
PaletteColorModel.LUT |
| Modifier and Type | Field and Description |
|---|---|
private PaletteColorModel.LUT |
lut |
private static int[] |
opaqueBits |
pixel_bits, transferTypeBITMASK, OPAQUE, TRANSLUCENT| Constructor and Description |
|---|
PaletteColorModel(int bits,
int dataType,
ColorSpace cs,
Attributes ds) |
| Modifier and Type | Method and Description |
|---|---|
BufferedImage |
convertToIntDiscrete(Raster raster) |
WritableRaster |
createCompatibleWritableRaster(int w,
int h) |
private static void |
endOfSegmentedLut() |
private static void |
exceedsLutLength(int descLen) |
int |
getAlpha(int pixel) |
int |
getBlue(int pixel) |
int |
getGreen(int pixel) |
int |
getRed(int pixel) |
int |
getRGB(int pixel) |
private static void |
illegalOpcode(int op,
int i) |
private void |
inflateSegmentedLut(int[] in,
byte[] out) |
boolean |
isCompatibleRaster(Raster raster) |
boolean |
isCompatibleSampleModel(SampleModel sm) |
private static int |
linearSegment(int y1,
byte[] out,
int x,
int n) |
private byte[] |
lutData(Attributes ds,
int[] desc,
int dataTag,
int segmTag) |
private int[] |
lutDescriptor(Attributes ds,
int descTag) |
private static void |
lutLengthMismatch(int lutLen,
int descLen) |
coerceData, createCompatibleSampleModel, equals, finalize, getAlpha, getAlphaRaster, getBlue, getColorSpace, getComponents, getComponents, getComponentSize, getComponentSize, getDataElement, getDataElement, getDataElements, getDataElements, getDataElements, getGreen, getNormalizedComponents, getNormalizedComponents, getNumColorComponents, getNumComponents, getPixelSize, getRed, getRGB, getRGBdefault, getTransferType, getTransparency, getUnnormalizedComponents, hasAlpha, hashCode, isAlphaPremultiplied, toStringprivate static final int[] opaqueBits
private final PaletteColorModel.LUT lut
public PaletteColorModel(int bits, int dataType, ColorSpace cs, Attributes ds)
private int[] lutDescriptor(Attributes ds, int descTag)
private byte[] lutData(Attributes ds, int[] desc, int dataTag, int segmTag)
private void inflateSegmentedLut(int[] in, byte[] out)
private static void endOfSegmentedLut()
private static int linearSegment(int y1, byte[] out, int x, int n)
private static void exceedsLutLength(int descLen)
private static void lutLengthMismatch(int lutLen, int descLen)
private static void illegalOpcode(int op, int i)
public boolean isCompatibleRaster(Raster raster)
isCompatibleRaster in class ColorModelpublic boolean isCompatibleSampleModel(SampleModel sm)
isCompatibleSampleModel in class ColorModelpublic int getRed(int pixel)
getRed in class ColorModelpublic int getGreen(int pixel)
getGreen in class ColorModelpublic int getBlue(int pixel)
getBlue in class ColorModelpublic int getAlpha(int pixel)
getAlpha in class ColorModelpublic int getRGB(int pixel)
getRGB in class ColorModelpublic WritableRaster createCompatibleWritableRaster(int w, int h)
createCompatibleWritableRaster in class ColorModelpublic BufferedImage convertToIntDiscrete(Raster raster)
Copyright © 2017 dcm4che.org. All rights reserved.