railo.runtime.img.filter
Class MapColorsFilter
java.lang.Object
railo.runtime.img.filter.AbstractBufferedImageOp
railo.runtime.img.filter.PointFilter
railo.runtime.img.filter.MapColorsFilter
- All Implemented Interfaces:
- BufferedImageOp, Cloneable, DynFiltering
public class MapColorsFilter
- extends PointFilter
- implements DynFiltering
A filter which replaces one color by another in an image. This is frankly, not often useful, but has its occasional
uses when dealing with GIF transparency and the like.
MapColorsFilter
public MapColorsFilter()
- Construct a MapColorsFilter.
MapColorsFilter
public MapColorsFilter(int oldColor,
int newColor)
- Construct a MapColorsFilter.
- Parameters:
oldColor
- the color to replacenewColor
- the color to replace it with
filterRGB
public int filterRGB(int x,
int y,
int rgb)
- Specified by:
filterRGB
in class PointFilter
filter
public BufferedImage filter(BufferedImage src,
Struct parameters)
throws PageException
- Specified by:
filter
in interface DynFiltering
- Overrides:
filter
in class PointFilter
- Throws:
PageException
Copyright © 2012 Railo