public class MotionBlurFilter extends AbstractBufferedImageOp implements MotionBlur
| Constructor and Description |
|---|
MotionBlurFilter()
Construct a MotionBlurFilter.
|
MotionBlurFilter(float distance,
float angle,
float rotation,
float zoom)
Construct a MotionBlurFilter.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.image.BufferedImage |
filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dst) |
float |
getAngle()
Returns the angle of blur.
|
java.awt.geom.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(java.awt.geom.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.
|
java.lang.String |
toString() |
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGBpublic MotionBlurFilter()
public MotionBlurFilter(float distance,
float angle,
float rotation,
float zoom)
distance - the distance of blur.angle - the angle of blur.rotation - the angle of rotation.zoom - the zoom factor.public void setCentreX(float centreX)
setCentreX in interface MotionBlurcentreX - the centergetCentreX()public float getCentreX()
getCentreX in interface MotionBlursetCentreX(float)public void setCentreY(float centreY)
setCentreY in interface MotionBlurcentreY - the centergetCentreY()public float getCentreY()
getCentreY in interface MotionBlursetCentreY(float)public void setCentre(java.awt.geom.Point2D centre)
setCentre in interface MotionBlurcentre - the centergetCentre()public java.awt.geom.Point2D getCentre()
getCentre in interface MotionBlursetCentre(java.awt.geom.Point2D)public void setAngle(float angle)
setAngle in interface MotionBlurangle - the angle of blur.getAngle()public float getAngle()
getAngle in interface MotionBlursetAngle(float)public void setDistance(float distance)
setDistance in interface MotionBlurdistance - the distance of blur.getDistance()public float getDistance()
getDistance in interface MotionBlursetDistance(float)public void setRotation(float rotation)
setRotation in interface MotionBlurrotation - the angle of rotation.getRotation()public float getRotation()
getRotation in interface MotionBlursetRotation(float)public void setZoom(float zoom)
setZoom in interface MotionBlurzoom - the zoom factor.getZoom()public float getZoom()
getZoom in interface MotionBlursetZoom(float)public void setWrapEdges(boolean wrapEdges)
wrapEdges - true if it should wrap.getWrapEdges()public boolean getWrapEdges()
setWrapEdges(boolean)public void setPremultiplyAlpha(boolean premultiplyAlpha)
premultiplyAlpha - true to premultiply the alphagetPremultiplyAlpha()public boolean getPremultiplyAlpha()
setPremultiplyAlpha(boolean)public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dst)
filter in interface java.awt.image.BufferedImageOppublic java.lang.String toString()
toString in class java.lang.Object