com.jhlabs.image

Class GradientWipeFilter

Implemented Interfaces:
BufferedImageOp, 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

BufferedImage
filter(BufferedImage src, BufferedImage dst)
float
getDensity()
boolean
getInvert()
BufferedImage
getMask()
float
getSoftness()
Get the softness of the dissolve.
void
setDensity(float density)
Set the density of the image in the range 0..1.
void
setInvert(boolean invert)
void
setMask(BufferedImage mask)
void
setSoftness(float softness)
Set the softness of the dissolve in the range 0..1.
String
toString()

Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp

clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRGB, getRenderingHints, setRGB

Constructor Details

GradientWipeFilter

public GradientWipeFilter()

Method Details

filter

public BufferedImage filter(BufferedImage src,
                            BufferedImage dst)

getDensity

public float getDensity()

getInvert

public boolean getInvert()

getMask

public BufferedImage getMask()

getSoftness

public float getSoftness()
Get the softness of the dissolve.
Returns:
the softness

setDensity

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

setInvert

public void setInvert(boolean invert)

setMask

public void setMask(BufferedImage mask)

setSoftness

public void setSoftness(float softness)
Set the softness of the dissolve in the range 0..1.
Parameters:
softness - the softness

toString

public String toString()