com.partnersoft.gui
Class ConfigurableColorFilter
java.lang.Object
java.awt.image.ImageFilter
java.awt.image.RGBImageFilter
com.partnersoft.gui.ConfigurableColorFilter
- All Implemented Interfaces:
- java.awt.image.ImageConsumer, java.lang.Cloneable
public class ConfigurableColorFilter
- extends java.awt.image.RGBImageFilter
Allows setting colors in an image in a configurable fashion. requires that
only pure colors are used - currently either red, green, or blue at full
strength (255). Replaces any instances of those with the specified colors.
Leaves alpha alone.
- Author:
- Paul Reavis Copyright 2003 Partner Software, Inc.
| Fields inherited from class java.awt.image.RGBImageFilter |
canFilterIndexColorModel, newmodel, origmodel |
| Fields inherited from class java.awt.image.ImageFilter |
consumer |
| Fields inherited from interface java.awt.image.ImageConsumer |
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT |
|
Constructor Summary |
ConfigurableColorFilter(java.awt.Color redColor,
java.awt.Color greenColor,
java.awt.Color blueColor)
|
|
Method Summary |
int |
filterRGB(int x,
int y,
int rgb)
|
| Methods inherited from class java.awt.image.RGBImageFilter |
filterIndexColorModel, filterRGBPixels, setColorModel, setPixels, setPixels, substituteColorModel |
| Methods inherited from class java.awt.image.ImageFilter |
clone, getFilterInstance, imageComplete, resendTopDownLeftRight, setDimensions, setHints, setProperties |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigurableColorFilter
public ConfigurableColorFilter(java.awt.Color redColor,
java.awt.Color greenColor,
java.awt.Color blueColor)
filterRGB
public final int filterRGB(int x,
int y,
int rgb)
- Specified by:
filterRGB in class java.awt.image.RGBImageFilter