Package noaa.coastwatch.gui
Class FullScreenToolBar.FadeImageFilter
java.lang.Object
java.awt.image.ImageFilter
java.awt.image.RGBImageFilter
noaa.coastwatch.gui.FullScreenToolBar.FadeImageFilter
- All Implemented Interfaces:
ImageConsumer
,Cloneable
- Enclosing class:
- FullScreenToolBar
The
FadeImageFilter
converts normal color
pixels to either brigher or darker versions using a fade
factor.-
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
ConstructorDescriptionFadeImageFilter
(double factor) Creates a new fade filter using the specified factor. -
Method Summary
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
-
Constructor Details
-
FadeImageFilter
public FadeImageFilter(double factor) Creates a new fade filter using the specified factor. The factor is multiplied by each pixel color component to compute the new component value.- Parameters:
factor
- the multiplicative fade factor.
-
-
Method Details
-
filterRGB
public int filterRGB(int x, int y, int rgb) - Specified by:
filterRGB
in classRGBImageFilter
-