com.partnersoft.gui
Class ColorToBlackFilter
java.lang.Object
java.awt.image.ImageFilter
java.awt.image.RGBImageFilter
com.partnersoft.gui.ColorToBlackFilter
- All Implemented Interfaces:
- java.awt.image.ImageConsumer, java.lang.Cloneable
public class ColorToBlackFilter
- extends java.awt.image.RGBImageFilter
An image filter that will turn the RGB components of all colors to zero, leaving
the alpha component alone.
- Author:
- Paul Reavis
Copyright 2001 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 |
|
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 |
ColorToBlackFilter
public ColorToBlackFilter()
filterRGB
public final int filterRGB(int x,
int y,
int rgb)
- Specified by:
filterRGB in class java.awt.image.RGBImageFilter