j2d.filters
Class FillFilter
java.lang.Object
j2d.filters.AbstractBufferedImageOp
j2d.filters.PointFilter
j2d.filters.FillFilter
- All Implemented Interfaces:
- ImageProcessorInterface, java.awt.image.BufferedImageOp, java.io.Serializable, java.lang.Cloneable
public class FillFilter
- extends PointFilter
A filter which fills an image with a given color. Normally you would just call Graphics.fillRect but it can sometimes be useful
to go via a filter to fit in with an existing API.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FillFilter
public FillFilter()
FillFilter
public FillFilter(int color)
setFillColor
public void setFillColor(int fillColor)
getFillColor
public int getFillColor()
filterRGB
public int filterRGB(int x,
int y,
int rgb)
- Specified by:
filterRGB
in class PointFilter