public class ColorMapFilter extends Filter
A ColorMapFilter is a Filter that uses a Map<Color,Color> to replace some RGB values with others in the filtered image. All pixels in the original image that share their RGB value with a key in the ColorMapFilter's Map will have their RGB value replaced with that of the key's value. The alpha values of the Colors in the Map are irrelevant to the ColorMapFilter's behavior, and the alpha values of the original image's pixels are left unchanged in the filtered image.
Constructor and Description |
---|
ColorMapFilter(java.util.Map<org.newdawn.slick.Color,org.newdawn.slick.Color> colorMap)
Creates a new ColorMapFilter that uses the specified Map.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<org.newdawn.slick.Color,org.newdawn.slick.Color> |
getColorMap()
Returns the Map that this ColorMapFilter uses.
|