Package com.aoindustries.awt
Class OptimalIndexColorModel
- java.lang.Object
-
- java.awt.image.ColorModel
-
- java.awt.image.IndexColorModel
-
- com.aoindustries.awt.OptimalIndexColorModel
-
- All Implemented Interfaces:
Transparency
public class OptimalIndexColorModel extends IndexColorModel
Generates a 255 + alpha IndexColorModel to best match a BufferedImage.- Author:
- AO Industries, Inc.
-
-
Field Summary
-
Fields inherited from class java.awt.image.ColorModel
pixel_bits, transferType
-
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OptimalIndexColorModelgetOptimalIndexColorModel(BufferedImage image)-
Methods inherited from class java.awt.image.IndexColorModel
convertToIntDiscrete, createCompatibleSampleModel, createCompatibleWritableRaster, finalize, getAlpha, getAlphas, getBlue, getBlues, getComponents, getComponents, getComponentSize, getDataElement, getDataElements, getDataElements, getGreen, getGreens, getMapSize, getRed, getReds, getRGB, getRGBs, getTransparency, getTransparentPixel, getValidPixels, isCompatibleRaster, isCompatibleSampleModel, isValid, isValid, toString
-
Methods inherited from class java.awt.image.ColorModel
coerceData, equals, getAlpha, getAlphaRaster, getBlue, getColorSpace, getComponentSize, getDataElement, getDataElements, getGreen, getNormalizedComponents, getNormalizedComponents, getNumColorComponents, getNumComponents, getPixelSize, getRed, getRGB, getRGBdefault, getTransferType, getUnnormalizedComponents, hasAlpha, hashCode, isAlphaPremultiplied
-
-
-
-
Method Detail
-
getOptimalIndexColorModel
public static OptimalIndexColorModel getOptimalIndexColorModel(BufferedImage image)
-
-