verinec.gui
Class GuiUtil.InvertFilter

java.lang.Object
  extended by java.awt.image.ImageFilter
      extended by java.awt.image.RGBImageFilter
          extended by verinec.gui.GuiUtil.InvertFilter
All Implemented Interfaces:
ImageConsumer, Cloneable
Enclosing class:
GuiUtil

static class GuiUtil.InvertFilter
extends RGBImageFilter

Invert filter for RGB images.


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
GuiUtil.InvertFilter()
           
 
Method Summary
 int filterRGB(int x, int y, int rgb)
          Inverts the rgb value of a point.
 
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

GuiUtil.InvertFilter

GuiUtil.InvertFilter()
Method Detail

filterRGB

public int filterRGB(int x,
                     int y,
                     int rgb)
Inverts the rgb value of a point.

Specified by:
filterRGB in class RGBImageFilter
Parameters:
x -
y -
rgb - The red green blue value of the point.
Returns:
New Color value for point.

Copyright © 2005 Verinec, DIUF