megamek.client.ui.swing.util
Class KeyAlphaFilter

java.lang.Object
  extended by java.awt.image.ImageFilter
      extended by java.awt.image.RGBImageFilter
          extended by megamek.client.ui.swing.util.KeyAlphaFilter
All Implemented Interfaces:
java.awt.image.ImageConsumer, java.lang.Cloneable

public class KeyAlphaFilter
extends java.awt.image.RGBImageFilter

Filters the pixels in the image by making all pixels that are the designated "key" color transparent.


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
KeyAlphaFilter(int keyColor)
           
 
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

KeyAlphaFilter

public KeyAlphaFilter(int keyColor)
Method Detail

filterRGB

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