sub_arctic.output
Class clear_to_transp_filter

java.lang.Object
  |
  +--java.awt.image.ImageFilter
        |
        +--java.awt.image.RGBImageFilter
              |
              +--sub_arctic.output.clear_to_transp_filter

public class clear_to_transp_filter
extends java.awt.image.RGBImageFilter

An image filter class to force all the pixels of an image to 100% transparent. This is used as a way to build an initially completely transparent image to draw on.


Fields inherited from class java.awt.image.RGBImageFilter
canFilterIndexColorModel, newmodel, origmodel
 
Fields inherited from class java.awt.image.ImageFilter
consumer
 
Constructor Summary
clear_to_transp_filter()
          Default constructor
 
Method Summary
 int filterRGB(int x, int y, int rgb)
          Filter routine that turns any pixel into 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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

clear_to_transp_filter

public clear_to_transp_filter()
Default constructor
Method Detail

filterRGB

public int filterRGB(int x,
                     int y,
                     int rgb)
Filter routine that turns any pixel into transparent
Parameters:
int - x the x position of the pixel
int - y the y position of the pixel
int - rgb the RGB+ALPHA encoding of the pixel's current color.
Returns:
int the resulting color's encoded value, in this case 0
Overrides:
filterRGB in class java.awt.image.RGBImageFilter