es.prodevelop.gvsig.mobile.fmap.util.graph2d
Class RGBAImageFilter

java.lang.Object
  extended byjava.awt.image.ImageFilter
      extended byjava.awt.image.RGBImageFilter
          extended byes.prodevelop.gvsig.mobile.fmap.util.graph2d.RGBAImageFilter
All Implemented Interfaces:
java.lang.Cloneable, java.awt.image.ImageConsumer

public class RGBAImageFilter
extends java.awt.image.RGBImageFilter

Image filter to perform transparency for a given color

Author:
jcarras

Field Summary
 
Fields inherited from interface java.awt.image.ImageConsumer
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT
 
Constructor Summary
RGBAImageFilter(java.awt.Color transp_c)
          Construtcor.
 
Method Summary
 int filterRGB(int x, int y, int rgb)
          Returns the provided color or a transparent pixel if the color matches the color indicated as transparent
 
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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RGBAImageFilter

public RGBAImageFilter(java.awt.Color transp_c)
Construtcor.

Parameters:
transp_c - the color that will be considered transparent
Method Detail

filterRGB

public int filterRGB(int x,
                     int y,
                     int rgb)
Returns the provided color or a transparent pixel if the color matches the color indicated as transparent

Parameters:
x - the x coordinate
y - the y coordinate
rgb - the RGB code