org.pushingpixels.flamingo.internal.utils
Class ColorShiftFilter
java.lang.Object
org.pushingpixels.flamingo.internal.utils.AbstractFilter
org.pushingpixels.flamingo.internal.utils.ColorShiftFilter
- All Implemented Interfaces:
- BufferedImageOp
public class ColorShiftFilter
- extends AbstractFilter
Image filter that shifts the colors of the original image.
Constructor Summary |
ColorShiftFilter(Color shiftColor,
double shiftAmount)
Creates a new color shift filter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColorShiftFilter
public ColorShiftFilter(Color shiftColor,
double shiftAmount)
- Creates a new color shift filter.
- Parameters:
shiftColor
- Shift color.shiftAmount
- Shift amount in 0.0-1.0 range.
filter
public BufferedImage filter(BufferedImage src,
BufferedImage dst)