com.jhlabs.image
Class FeedbackFilter
- BufferedImageOp, Cloneable
public class FeedbackFilter
A filter which priduces a video feedback effect by repeated transformations.
FeedbackFilter() - Construct a FeedbackFilter.
|
FeedbackFilter(float distance, float angle, float rotation, float zoom) - Construct a FeedbackFilter.
|
BufferedImage | filter(BufferedImage src, BufferedImage dst)
|
float | getAngle() - Returns the angle of each iteration.
|
Point2D | getCentre() - Get the centre of the effect as a proportion of the image size.
|
float | getCentreX() - Get the centre of the effect in the X direction as a proportion of the image size.
|
float | getCentreY() - Get the centre of the effect in the Y direction as a proportion of the image size.
|
float | getDistance() - Get the distance to move on each iteration.
|
float | getEndAlpha() - Get the alpha value at the last iteration.
|
int | getIterations() - Get the number of iterations.
|
float | getRotation() - Returns the amount of rotation on each iteration.
|
float | getStartAlpha() - Get the alpha value at the first iteration.
|
float | getZoom() - Returns the amount to scale on each iteration.
|
void | setAngle(float angle) - Specifies the angle of each iteration.
|
void | setCentre(Point2D centre) - Set the centre of the effect as a proportion of the image size.
|
void | setCentreX(float centreX) - Set the centre of the effect in the X direction as a proportion of the image size.
|
void | setCentreY(float centreY) - Set the centre of the effect in the Y direction as a proportion of the image size.
|
void | setDistance(float distance) - Specifies the distance to move on each iteration.
|
void | setEndAlpha(float endAlpha) - Set the alpha value at the last iteration.
|
void | setIterations(int iterations) - Set the number of iterations.
|
void | setRotation(float rotation) - Specifies the amount of rotation on each iteration.
|
void | setStartAlpha(float startAlpha) - Set the alpha value at the first iteration.
|
void | setZoom(float zoom) - Specifies the amount to scale on each iteration.
|
String | toString()
|
FeedbackFilter
public FeedbackFilter()
Construct a FeedbackFilter.
FeedbackFilter
public FeedbackFilter(float distance,
float angle,
float rotation,
float zoom)
Construct a FeedbackFilter.
distance
- the distance to move on each iterationangle
- the angle to move on each iterationrotation
- the amount to rotate on each iterationzoom
- the amount to scale on each iteration
filter
public BufferedImage filter(BufferedImage src,
BufferedImage dst)
getAngle
public float getAngle()
Returns the angle of each iteration.
- the angle of each iteration.
getCentre
public Point2D getCentre()
Get the centre of the effect as a proportion of the image size.
getCentreX
public float getCentreX()
Get the centre of the effect in the X direction as a proportion of the image size.
getCentreY
public float getCentreY()
Get the centre of the effect in the Y direction as a proportion of the image size.
getDistance
public float getDistance()
Get the distance to move on each iteration.
getEndAlpha
public float getEndAlpha()
Get the alpha value at the last iteration.
getIterations
public int getIterations()
Get the number of iterations.
getRotation
public float getRotation()
Returns the amount of rotation on each iteration.
getStartAlpha
public float getStartAlpha()
Get the alpha value at the first iteration.
getZoom
public float getZoom()
Returns the amount to scale on each iteration.
setAngle
public void setAngle(float angle)
Specifies the angle of each iteration.
angle
- the angle of each iteration.
setCentre
public void setCentre(Point2D centre)
Set the centre of the effect as a proportion of the image size.
setCentreX
public void setCentreX(float centreX)
Set the centre of the effect in the X direction as a proportion of the image size.
setCentreY
public void setCentreY(float centreY)
Set the centre of the effect in the Y direction as a proportion of the image size.
setDistance
public void setDistance(float distance)
Specifies the distance to move on each iteration.
setEndAlpha
public void setEndAlpha(float endAlpha)
Set the alpha value at the last iteration.
endAlpha
- the alpha value
setIterations
public void setIterations(int iterations)
Set the number of iterations.
iterations
- the number of iterations
setRotation
public void setRotation(float rotation)
Specifies the amount of rotation on each iteration.
rotation
- the angle of rotation
setStartAlpha
public void setStartAlpha(float startAlpha)
Set the alpha value at the first iteration.
startAlpha
- the alpha value
setZoom
public void setZoom(float zoom)
Specifies the amount to scale on each iteration.
toString
public String toString()