public class DisplaceFilter extends TransformFilter
BILINEAR, CLAMP, edgeAction, interpolation, NEAREST_NEIGHBOUR, originalSpace, RGB_CLAMP, transformedSpace, WRAP, ZEROfilterListener| Constructor and Description |
|---|
DisplaceFilter() |
| Modifier and Type | Method and Description |
|---|---|
BufferedImage |
filter(BufferedImage src,
BufferedImage dst) |
float |
getAmount()
Get the amount of distortion.
|
BufferedImage |
getDisplacementMap()
Get the displacement map.
|
void |
setAmount(float amount)
Set the amount of distortion.
|
void |
setDisplacementMap(BufferedImage displacementMap)
Set the displacement map.
|
String |
toString() |
protected void |
transformInverse(int x,
int y,
float[] out)
Inverse transform a point.
|
filterPixelsNN, getEdgeAction, getInterpolation, setEdgeAction, setInterpolation, transformSpaceclone, createCompatibleDestImage, createCompatibleDestImage, filterDone, filterInitialize, filterProgress, filterStart, getBounds2D, getMetaData, getPoint2D, getRenderingHints, getRGB, setFilterListener, setRGBpublic void setDisplacementMap(BufferedImage displacementMap)
displacementMap - an image representing the displacment at each pointgetDisplacementMap()public BufferedImage getDisplacementMap()
setDisplacementMap(java.awt.image.BufferedImage)public void setAmount(float amount)
amount - the amountgetAmount()public float getAmount()
setAmount(float)public BufferedImage filter(BufferedImage src, BufferedImage dst)
filter in interface BufferedImageOpfilter in class TransformFilterprotected void transformInverse(int x,
int y,
float[] out)
TransformFiltertransformInverse in class TransformFilterx - the X position of the pixel in the output imagey - the Y position of the pixel in the output imageout - the position of the pixel in the input imageCopyright © 2012-2013 Bambi Software Foundation. All Rights Reserved.