com.partnersoft.v3x.gui
Class FixedColorFilter
java.lang.Object
java.awt.image.ImageFilter
java.awt.image.RGBImageFilter
com.partnersoft.v3x.gui.FixedColorFilter
- All Implemented Interfaces:
- java.awt.image.ImageConsumer, java.lang.Cloneable
public class FixedColorFilter
- extends java.awt.image.RGBImageFilter
An image filter that will turn the RGB components of all colors to another
value, leaving the alpha component alone.
| 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 |
| 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, wait, wait, wait |
FILTER_TO_BLACK
public static final FixedColorFilter FILTER_TO_BLACK
FILTER_TO_WHITE
public static final FixedColorFilter FILTER_TO_WHITE
FixedColorFilter
public FixedColorFilter(int color)
filterRGB
public final int filterRGB(int x,
int y,
int rgb)
- Specified by:
filterRGB in class java.awt.image.RGBImageFilter
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object