Package com.jhlabs.image
Class MotionBlurOp
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.MotionBlurOp
- All Implemented Interfaces:
MotionBlur,BufferedImageOp,Cloneable
- Direct Known Subclasses:
RaysFilter
A filter which produces motion blur the faster, but lower-quality way.
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct a MotionBlurOp.MotionBlurOp(float distance, float angle, float rotation, float zoom) Construct a MotionBlurOp. -
Method Summary
Modifier and TypeMethodDescriptionfilter(BufferedImage src, BufferedImage dst) floatgetAngle()Returns the angle of blur.Get the centre of the effect as a proportion of the image size.floatGet the centre of the effect in the X direction as a proportion of the image size.floatGet the centre of the effect in the Y direction as a proportion of the image size.floatGet the distance of blur.floatGet the blur rotation.floatgetZoom()Get the blur zoom.voidsetAngle(float angle) Specifies the angle of blur.voidSet the centre of the effect as a proportion of the image size.voidsetCentreX(float centreX) Set the centre of the effect in the X direction as a proportion of the image size.voidsetCentreY(float centreY) Set the centre of the effect in the Y direction as a proportion of the image size.voidsetDistance(float distance) Set the distance of blur.voidsetRotation(float rotation) Set the blur rotation.voidsetZoom(float zoom) Set the blur zoom.toString()Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGBMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.awt.image.BufferedImageOp
createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints
-
Constructor Details
-
MotionBlurOp
public MotionBlurOp()Construct a MotionBlurOp. -
MotionBlurOp
public MotionBlurOp(float distance, float angle, float rotation, float zoom) Construct a MotionBlurOp.- Parameters:
distance- the distance of blur.angle- the angle of blur.rotation- the angle of rotation.zoom- the zoom factor.
-
-
Method Details
-
setAngle
public void setAngle(float angle) Specifies the angle of blur.- Specified by:
setAnglein interfaceMotionBlur- Parameters:
angle- the angle of blur.- See Also:
-
getAngle
public float getAngle()Returns the angle of blur.- Specified by:
getAnglein interfaceMotionBlur- Returns:
- the angle of blur.
- See Also:
-
setDistance
public void setDistance(float distance) Set the distance of blur.- Specified by:
setDistancein interfaceMotionBlur- Parameters:
distance- the distance of blur.- See Also:
-
getDistance
public float getDistance()Get the distance of blur.- Specified by:
getDistancein interfaceMotionBlur- Returns:
- the distance of blur.
- See Also:
-
setRotation
public void setRotation(float rotation) Set the blur rotation.- Specified by:
setRotationin interfaceMotionBlur- Parameters:
rotation- the angle of rotation.- See Also:
-
getRotation
public float getRotation()Get the blur rotation.- Specified by:
getRotationin interfaceMotionBlur- Returns:
- the angle of rotation.
- See Also:
-
setZoom
public void setZoom(float zoom) Set the blur zoom.- Specified by:
setZoomin interfaceMotionBlur- Parameters:
zoom- the zoom factor.- See Also:
-
getZoom
public float getZoom()Get the blur zoom.- Specified by:
getZoomin interfaceMotionBlur- Returns:
- the zoom factor.
- See Also:
-
setCentreX
public void setCentreX(float centreX) Set the centre of the effect in the X direction as a proportion of the image size.- Specified by:
setCentreXin interfaceMotionBlur- Parameters:
centreX- the center- See Also:
-
getCentreX
public float getCentreX()Get the centre of the effect in the X direction as a proportion of the image size.- Specified by:
getCentreXin interfaceMotionBlur- Returns:
- the center
- See Also:
-
setCentreY
public void setCentreY(float centreY) Set the centre of the effect in the Y direction as a proportion of the image size.- Specified by:
setCentreYin interfaceMotionBlur- Parameters:
centreY- the center- See Also:
-
getCentreY
public float getCentreY()Get the centre of the effect in the Y direction as a proportion of the image size.- Specified by:
getCentreYin interfaceMotionBlur- Returns:
- the center
- See Also:
-
setCentre
Set the centre of the effect as a proportion of the image size.- Specified by:
setCentrein interfaceMotionBlur- Parameters:
centre- the center- See Also:
-
getCentre
Get the centre of the effect as a proportion of the image size.- Specified by:
getCentrein interfaceMotionBlur- Returns:
- the center
- See Also:
-
filter
- Specified by:
filterin interfaceBufferedImageOp
-
toString
-