Package org.aoju.bus.image.nimble
Class PaletteColorModel
java.lang.Object
java.awt.image.ColorModel
org.aoju.bus.image.nimble.PaletteColorModel
- All Implemented Interfaces:
Transparency
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Field Summary
Fields inherited from class java.awt.image.ColorModel
pixel_bits, transferTypeFields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertToIntDiscrete(Raster raster) createCompatibleWritableRaster(int w, int h) intgetAlpha(int pixel) intgetBlue(int pixel) intgetGreen(int pixel) intgetRed(int pixel) intgetRGB(int pixel) booleanisCompatibleRaster(Raster raster) booleanMethods inherited from class java.awt.image.ColorModel
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, toString
-
Constructor Details
-
PaletteColorModel
-
-
Method Details
-
isCompatibleRaster
- Overrides:
isCompatibleRasterin classColorModel
-
isCompatibleSampleModel
- Overrides:
isCompatibleSampleModelin classColorModel
-
getRed
public int getRed(int pixel) - Specified by:
getRedin classColorModel
-
getGreen
public int getGreen(int pixel) - Specified by:
getGreenin classColorModel
-
getBlue
public int getBlue(int pixel) - Specified by:
getBluein classColorModel
-
getAlpha
public int getAlpha(int pixel) - Specified by:
getAlphain classColorModel
-
getRGB
public int getRGB(int pixel) - Overrides:
getRGBin classColorModel
-
createCompatibleWritableRaster
- Overrides:
createCompatibleWritableRasterin classColorModel
-
convertToIntDiscrete
-