Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.arranger.jarl.util
Class ImageUtil.ShapeImageMaskFilter  view ImageUtil.ShapeImageMaskFilter download ImageUtil.ShapeImageMaskFilter.java

java.lang.Object
  extended byjava.awt.image.ImageFilter
      extended byjava.awt.image.RGBImageFilter
          extended bycom.arranger.jarl.util.ImageUtil.ShapeImageMaskFilter
All Implemented Interfaces:
java.lang.Cloneable, java.awt.image.ImageConsumer
Enclosing class:
ImageUtil

public static class ImageUtil.ShapeImageMaskFilter
extends java.awt.image.RGBImageFilter

This will mask off any color outside of the java.awt.Shape


Field Summary
protected  java.awt.Shape m_shape
           
 
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
ImageUtil.ShapeImageMaskFilter(java.awt.Shape shape)
           
 
Method Summary
 int filterRGB(int x, int y, int rgb)
          Filters a single pixel from the default ColorModel.
 
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
 

Field Detail

m_shape

protected java.awt.Shape m_shape
Constructor Detail

ImageUtil.ShapeImageMaskFilter

public ImageUtil.ShapeImageMaskFilter(java.awt.Shape shape)
Method Detail

filterRGB

public int filterRGB(int x,
                     int y,
                     int rgb)
Description copied from class: java.awt.image.RGBImageFilter
Filters a single pixel from the default ColorModel.