com.jhlabs.image
Class MotionBlurFilter
- BufferedImageOp, Cloneable, MotionBlur
public class MotionBlurFilter
A filter which produces motion blur the slow, but higher-quality way.
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.
|
boolean | getPremultiplyAlpha() - Get whether to premultiply the alpha channel.
|
float | getRotation() - Get the blur rotation.
|
boolean | getWrapEdges() - Get whether to wrap at the image edges.
|
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 | setPremultiplyAlpha(boolean premultiplyAlpha) - Set whether to premultiply the alpha channel.
|
void | setRotation(float rotation) - Set the blur rotation.
|
void | setWrapEdges(boolean wrapEdges) - Set whether to wrap at the image edges.
|
void | setZoom(float zoom) - Set the blur zoom.
|
String | toString()
|
MotionBlurFilter
public MotionBlurFilter()
Construct a MotionBlurFilter.
MotionBlurFilter
public MotionBlurFilter(float distance,
float angle,
float rotation,
float zoom)
Construct a MotionBlurFilter.
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.
- getAngle in interface MotionBlur
getCentre
public Point2D getCentre()
Get the centre of the effect as a proportion of the image size.
- getCentre in interface MotionBlur
getCentreX
public float getCentreX()
Get the centre of the effect in the X direction as a proportion of the image size.
- getCentreX in interface MotionBlur
getCentreY
public float getCentreY()
Get the centre of the effect in the Y direction as a proportion of the image size.
- getCentreY in interface MotionBlur
getPremultiplyAlpha
public boolean getPremultiplyAlpha()
Get whether to premultiply the alpha channel.
- true to premultiply the alpha
getWrapEdges
public boolean getWrapEdges()
Get whether to wrap at the image edges.
setAngle
public void setAngle(float angle)
Specifies the angle of blur.
- setAngle in interface MotionBlur
angle
- the angle of blur.
setCentre
public void setCentre(Point2D centre)
Set the centre of the effect as a proportion of the image size.
- setCentre in interface MotionBlur
setCentreX
public void setCentreX(float centreX)
Set the centre of the effect in the X direction as a proportion of the image size.
- setCentreX in interface MotionBlur
setCentreY
public void setCentreY(float centreY)
Set the centre of the effect in the Y direction as a proportion of the image size.
- setCentreY in interface MotionBlur
setDistance
public void setDistance(float distance)
Set the distance of blur.
- setDistance in interface MotionBlur
distance
- the distance of blur.
setPremultiplyAlpha
public void setPremultiplyAlpha(boolean premultiplyAlpha)
Set whether to premultiply the alpha channel.
premultiplyAlpha
- true to premultiply the alpha
setRotation
public void setRotation(float rotation)
Set the blur rotation.
- setRotation in interface MotionBlur
rotation
- the angle of rotation.
setWrapEdges
public void setWrapEdges(boolean wrapEdges)
Set whether to wrap at the image edges.
wrapEdges
- true if it should wrap.
setZoom
public void setZoom(float zoom)
Set the blur zoom.
- setZoom in interface MotionBlur
toString
public String toString()