com.jhlabs.image
Class GradientWipeFilter

java.lang.Object
  extended by com.jhlabs.image.AbstractBufferedImageOp
      extended by com.jhlabs.image.GradientWipeFilter
All Implemented Interfaces:
ImageProcessorInterface, java.awt.image.BufferedImageOp, java.lang.Cloneable

public class GradientWipeFilter
extends AbstractBufferedImageOp

A filter which can be used to produce wipes by transferring the luma of a mask image into the alpha channel of the source.


Constructor Summary
GradientWipeFilter()
           
 
Method Summary
 java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
           
 float getDensity()
           
 boolean getInvert()
           
 java.awt.image.BufferedImage getMask()
           
 float getSoftness()
           
 void setDensity(float density)
          Set the density of the image in the range 0..1.
 void setInvert(boolean invert)
           
 void setMask(java.awt.image.BufferedImage mask)
           
 void setSoftness(float softness)
           
 java.lang.String toString()
           
 
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, process, setRGB
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GradientWipeFilter

public GradientWipeFilter()
Method Detail

setDensity

public void setDensity(float density)
Set the density of the image in the range 0..1. *arg density The density


getDensity

public float getDensity()

setSoftness

public void setSoftness(float softness)

getSoftness

public float getSoftness()

setMask

public void setMask(java.awt.image.BufferedImage mask)

getMask

public java.awt.image.BufferedImage getMask()

setInvert

public void setInvert(boolean invert)

getInvert

public boolean getInvert()

filter

public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src,
                                           java.awt.image.BufferedImage dst)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object