com.jhlabs.image
Class FieldWarpFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.TransformFilter
com.jhlabs.image.FieldWarpFilter
- All Implemented Interfaces:
- BufferedImageOp, Cloneable
public class FieldWarpFilter
- extends TransformFilter
A class which warps an image using a field Warp algorithm.
FieldWarpFilter
public FieldWarpFilter()
setAmount
public void setAmount(float amount)
- Set the amount of warp.
- Parameters:
amount - the amount- See Also:
getAmount()
getAmount
public float getAmount()
- Get the amount of warp.
- Returns:
- the amount
- See Also:
setAmount(float)
setPower
public void setPower(float power)
getPower
public float getPower()
setStrength
public void setStrength(float strength)
getStrength
public float getStrength()
setInLines
public void setInLines(FieldWarpFilter.Line[] inLines)
getInLines
public FieldWarpFilter.Line[] getInLines()
setOutLines
public void setOutLines(FieldWarpFilter.Line[] outLines)
getOutLines
public FieldWarpFilter.Line[] getOutLines()
transform
protected void transform(int x,
int y,
Point out)
transformInverse
protected void transformInverse(int x,
int y,
float[] out)
- Description copied from class:
TransformFilter
- Inverse transform a point. This method needs to be overriden by all subclasses.
- Specified by:
transformInverse in class TransformFilter
- Parameters:
x - 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 image
filter
public BufferedImage filter(BufferedImage src,
BufferedImage dst)
- Specified by:
filter in interface BufferedImageOp- Overrides:
filter in class TransformFilter
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2012. All Rights Reserved.