com.jhlabs.image
Class MotionBlurOp
- BufferedImageOp, Cloneable
public class MotionBlurOp
A filter which produces motion blur the faster, but lower-quality way.
MotionBlurOp() - Construct a MotionBlurOp.
|
MotionBlurOp(float distance, float angle, float rotation, float zoom) - Construct a MotionBlurOp.
|
BufferedImage | filter(BufferedImage src, BufferedImage dst)
|
float | getAngle() - Returns the angle of blur.
|
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 of blur.
|
float | getRotation() - Get the blur rotation.
|
float | getZoom() - Get the blur zoom.
|
void | setAngle(float angle) - Specifies the angle of blur.
|
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) - Set the distance of blur.
|
void | setRotation(float rotation) - Set the blur rotation.
|
void | setZoom(float zoom) - Set the blur zoom.
|
String | toString()
|
MotionBlurOp
public MotionBlurOp()
Construct a MotionBlurOp.
MotionBlurOp
public MotionBlurOp(float distance,
float angle,
float rotation,
float zoom)
Construct a MotionBlurOp.
distance
- the distance of blur.angle
- the angle of blur.rotation
- the angle of rotation.zoom
- the zoom factor.
filter
public BufferedImage filter(BufferedImage src,
BufferedImage dst)
getAngle
public float getAngle()
Returns the angle of blur.
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 of blur.
getRotation
public float getRotation()
Get the blur rotation.
getZoom
public float getZoom()
Get the blur zoom.
setAngle
public void setAngle(float angle)
Specifies the angle of blur.
angle
- the angle of blur.
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)
Set the distance of blur.
distance
- the distance of blur.
setRotation
public void setRotation(float rotation)
Set the blur rotation.
rotation
- the angle of rotation.
setZoom
public void setZoom(float zoom)
Set the blur zoom.
toString
public String toString()