com.lizardtech.djvubean.toolbar
Class TransparentFilter

java.lang.Object
  extended by java.awt.image.ImageFilter
      extended by java.awt.image.RGBImageFilter
          extended by com.lizardtech.djvubean.toolbar.TransparentFilter
All Implemented Interfaces:
java.awt.image.ImageConsumer, java.lang.Cloneable

public class TransparentFilter
extends java.awt.image.RGBImageFilter

Set transparent

Version:
$Revision: 1.2 $
Author:
Bill C. Riemers

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
TransparentFilter()
          Creates a new GrayFilter object.
 
Method Summary
 int filterRGB(int x, int y, int rgb)
          Filter to convert to gray.
 
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

TransparentFilter

public TransparentFilter()
Creates a new GrayFilter object.

Method Detail

filterRGB

public int filterRGB(int x,
                     int y,
                     int rgb)
Filter to convert to gray.

Specified by:
filterRGB in class java.awt.image.RGBImageFilter
Parameters:
x - coordinate of pixel.
y - coordinate of pixel.
rgb - red blue green value of pixel.
Returns:
a darker color for the pixel.