rl.client.ui
Class TintFilter

java.lang.Object
  extended by java.awt.image.ImageFilter
      extended by java.awt.image.RGBImageFilter
          extended by rl.client.ui.TintFilter
All Implemented Interfaces:
java.awt.image.ImageConsumer, java.lang.Cloneable

public class TintFilter
extends java.awt.image.RGBImageFilter

Filters the pixels in the image by tinting a black and white image to a certain color.


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
TintFilter(int colour, int tintColour)
           
 
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

TintFilter

public TintFilter(int colour,
                  int tintColour)
Method Detail

filterRGB

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