Class MutableIndexColorModel
- java.lang.Object
-
- java.awt.image.ColorModel
-
- com.twelvemonkeys.imageio.plugins.iff.MutableIndexColorModel
-
- All Implemented Interfaces:
java.awt.Transparency
final class MutableIndexColorModel extends java.awt.image.ColorModelA mutable indexed color model. For use with images that exploits Amiga hardware to change the color lookup table between scan lines.- Version:
- $Id: MutableIndexColorModel.java,v 1.0 29.03.12 15:00 haraldk Exp$
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classMutableIndexColorModel.PaletteChange
-
Field Summary
Fields Modifier and Type Field Description (package private) static intMP_REG_IGNORE(package private) int[]rgbs
-
Constructor Summary
Constructors Constructor Description MutableIndexColorModel(java.awt.image.IndexColorModel base)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadjustColorMap(MutableIndexColorModel.PaletteChange[] changes)intgetAlpha(int pixel)intgetBlue(int pixel)intgetGreen(int pixel)intgetMapSize()intgetRed(int pixel)intgetRGB(int pixel)private static int[]getRGBs(java.awt.image.IndexColorModel colorModel)private voidupdateRGB(int index, int rgb)-
Methods inherited from class java.awt.image.ColorModel
coerceData, createCompatibleSampleModel, createCompatibleWritableRaster, 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, isCompatibleRaster, isCompatibleSampleModel, toString
-
-
-
-
Field Detail
-
MP_REG_IGNORE
static final int MP_REG_IGNORE
- See Also:
- Constant Field Values
-
rgbs
final int[] rgbs
-
-
Method Detail
-
getRGBs
private static int[] getRGBs(java.awt.image.IndexColorModel colorModel)
-
adjustColorMap
public void adjustColorMap(MutableIndexColorModel.PaletteChange[] changes)
-
getRGB
public int getRGB(int pixel)
- Overrides:
getRGBin classjava.awt.image.ColorModel
-
getRed
public int getRed(int pixel)
- Specified by:
getRedin classjava.awt.image.ColorModel
-
getGreen
public int getGreen(int pixel)
- Specified by:
getGreenin classjava.awt.image.ColorModel
-
getBlue
public int getBlue(int pixel)
- Specified by:
getBluein classjava.awt.image.ColorModel
-
getAlpha
public int getAlpha(int pixel)
- Specified by:
getAlphain classjava.awt.image.ColorModel
-
updateRGB
private void updateRGB(int index, int rgb)
-
getMapSize
public int getMapSize()
-
-