类 MotionBlurOp
- java.lang.Object
-
- org.meteoinfo.image.filter.AbstractBufferedImageOp
-
- org.meteoinfo.image.filter.MotionBlurOp
-
- 所有已实现的接口:
BufferedImageOp,Cloneable
- 直接已知子类:
RaysFilter
public class MotionBlurOp extends AbstractBufferedImageOp
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.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 BufferedImagefilter(BufferedImage src, BufferedImage dst)floatgetAngle()Returns the angle of blur.Point2DgetCentre()Get the centre of the effect as a proportion of the image size.floatgetCentreX()Get the centre of the effect in the X direction as a proportion of the image size.floatgetCentreY()Get the centre of the effect in the Y direction as a proportion of the image size.floatgetDistance()Get the distance of blur.floatgetRotation()Get the blur rotation.floatgetZoom()Get the blur zoom.voidsetAngle(float angle)Specifies the angle of blur.voidsetCentre(Point2D centre)Set 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.StringtoString()-
从类继承的方法 org.meteoinfo.image.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
-
-
-
构造器详细资料
-
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.
-
-
方法详细资料
-
setAngle
public void setAngle(float angle)
Specifies the angle of blur.- 参数:
angle- the angle of blur.- 另请参阅:
getAngle()
-
getAngle
public float getAngle()
Returns the angle of blur.- 返回:
- the angle of blur.
- 另请参阅:
setAngle(float)
-
setDistance
public void setDistance(float distance)
Set the distance of blur.- 参数:
distance- the distance of blur.- 另请参阅:
getDistance()
-
getDistance
public float getDistance()
Get the distance of blur.- 返回:
- the distance of blur.
- 另请参阅:
setDistance(float)
-
setRotation
public void setRotation(float rotation)
Set the blur rotation.- 参数:
rotation- the angle of rotation.- 另请参阅:
getRotation()
-
getRotation
public float getRotation()
Get the blur rotation.- 返回:
- the angle of rotation.
- 另请参阅:
setRotation(float)
-
setZoom
public void setZoom(float zoom)
Set the blur zoom.- 参数:
zoom- the zoom factor.- 另请参阅:
getZoom()
-
getZoom
public float getZoom()
Get the blur zoom.- 返回:
- the zoom factor.
- 另请参阅:
setZoom(float)
-
setCentreX
public void setCentreX(float centreX)
Set the centre of the effect in the X direction as a proportion of the image size.- 参数:
centreX- the center- 另请参阅:
getCentreX()
-
getCentreX
public float getCentreX()
Get the centre of the effect in the X direction as a proportion of the image size.- 返回:
- the center
- 另请参阅:
setCentreX(float)
-
setCentreY
public void setCentreY(float centreY)
Set the centre of the effect in the Y direction as a proportion of the image size.- 参数:
centreY- the center- 另请参阅:
getCentreY()
-
getCentreY
public float getCentreY()
Get the centre of the effect in the Y direction as a proportion of the image size.- 返回:
- the center
- 另请参阅:
setCentreY(float)
-
setCentre
public void setCentre(Point2D centre)
Set the centre of the effect as a proportion of the image size.- 参数:
centre- the center- 另请参阅:
getCentre()
-
getCentre
public Point2D getCentre()
Get the centre of the effect as a proportion of the image size.- 返回:
- the center
- 另请参阅:
setCentre(java.awt.geom.Point2D)
-
filter
public BufferedImage filter(BufferedImage src, BufferedImage dst)
-
-