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.ColorModel
A 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 class
MutableIndexColorModel.PaletteChange
-
Field Summary
Fields Modifier and Type Field Description (package private) static int
MP_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 void
adjustColorMap(MutableIndexColorModel.PaletteChange[] changes)
int
getAlpha(int pixel)
int
getBlue(int pixel)
int
getGreen(int pixel)
int
getMapSize()
int
getRed(int pixel)
int
getRGB(int pixel)
private static int[]
getRGBs(java.awt.image.IndexColorModel colorModel)
private void
updateRGB(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:
getRGB
in classjava.awt.image.ColorModel
-
getRed
public int getRed(int pixel)
- Specified by:
getRed
in classjava.awt.image.ColorModel
-
getGreen
public int getGreen(int pixel)
- Specified by:
getGreen
in classjava.awt.image.ColorModel
-
getBlue
public int getBlue(int pixel)
- Specified by:
getBlue
in classjava.awt.image.ColorModel
-
getAlpha
public int getAlpha(int pixel)
- Specified by:
getAlpha
in classjava.awt.image.ColorModel
-
updateRGB
private void updateRGB(int index, int rgb)
-
getMapSize
public int getMapSize()
-
-