com.jhlabs.image
Class FourColorFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.PointFilter
com.jhlabs.image.FourColorFilter
- All Implemented Interfaces:
- ImageProcessorInterface, java.awt.image.BufferedImageOp, java.lang.Cloneable
public class FourColorFilter
- extends PointFilter
A filter which draws a gradient interpolated between four colors defined at the corners of the image.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FourColorFilter
public FourColorFilter()
setColorNW
public void setColorNW(int color)
getColorNW
public int getColorNW()
setColorNE
public void setColorNE(int color)
getColorNE
public int getColorNE()
setColorSW
public void setColorSW(int color)
getColorSW
public int getColorSW()
setColorSE
public void setColorSE(int color)
getColorSE
public int getColorSE()
setDimensions
public void setDimensions(int width,
int height)
- Overrides:
setDimensions
in class PointFilter
filterRGB
public int filterRGB(int x,
int y,
int rgb)
- Specified by:
filterRGB
in class PointFilter
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object