com.partnersoft.gui
Class ColorToBlackFilter

java.lang.Object
  extended by java.awt.image.ImageFilter
      extended by java.awt.image.RGBImageFilter
          extended by 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.

Field Summary
 
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
ColorToBlackFilter()
           
 
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
 

Constructor Detail

ColorToBlackFilter

public ColorToBlackFilter()
Method Detail

filterRGB

public final int filterRGB(int x,
                           int y,
                           int rgb)
Specified by:
filterRGB in class java.awt.image.RGBImageFilter