Package org.aoju.bus.image.nimble
Class SampledColorModel
java.lang.Object
java.awt.image.ColorModel
org.aoju.bus.image.nimble.SampledColorModel
-
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 TypeMethodDescriptioncreateCompatibleSampleModel(int w, int h) intgetAlpha(int pixel) intintgetBlue(int pixel) intintgetGreen(int pixel) intintgetRed(int pixel) intintbooleanisCompatibleRaster(Raster raster) booleanMethods inherited from class java.awt.image.ColorModel
coerceData, createCompatibleWritableRaster, equals, 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
-
Constructor Details
-
SampledColorModel
-
-
Method Details
-
isCompatibleRaster
- Overrides:
isCompatibleRasterin classColorModel
-
isCompatibleSampleModel
- Overrides:
isCompatibleSampleModelin classColorModel
-
createCompatibleSampleModel
- Overrides:
createCompatibleSampleModelin classColorModel
-
getAlpha
public int getAlpha(int pixel) - Specified by:
getAlphain classColorModel
-
getBlue
public int getBlue(int pixel) - Specified by:
getBluein classColorModel
-
getGreen
public int getGreen(int pixel) - Specified by:
getGreenin classColorModel
-
getRed
public int getRed(int pixel) - Specified by:
getRedin classColorModel
-
getAlpha
- Overrides:
getAlphain classColorModel
-
getBlue
- Overrides:
getBluein classColorModel
-
getGreen
- Overrides:
getGreenin classColorModel
-
getRed
- Overrides:
getRedin classColorModel
-
getRGB
- Overrides:
getRGBin classColorModel
-