类 MotionBlurFilter
- java.lang.Object
-
- org.meteoinfo.image.filter.AbstractBufferedImageOp
-
- org.meteoinfo.image.filter.MotionBlurFilter
-
- 所有已实现的接口:
BufferedImageOp,Cloneable
public class MotionBlurFilter extends AbstractBufferedImageOp
A filter which produces motion blur the slow, but higher-quality way.
-
-
构造器概要
构造器 构造器 说明 MotionBlurFilter()Construct a MotionBlurFilter.MotionBlurFilter(float distance, float angle, float rotation, float zoom)Construct a MotionBlurFilter.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 BufferedImagefilter(BufferedImage src, BufferedImage dst)floatgetAngle()Returns the angle of blur.floatgetDistance()Get the distance of blur.booleangetPremultiplyAlpha()Get whether to premultiply the alpha channel.floatgetRotation()Get the blur rotation.booleangetWrapEdges()Get whether to wrap at the image edges.floatgetZoom()Get the blur zoom.voidsetAngle(float angle)Specifies the angle of blur.voidsetDistance(float distance)Set the distance of blur.voidsetPremultiplyAlpha(boolean premultiplyAlpha)Set whether to premultiply the alpha channel.voidsetRotation(float rotation)Set the blur rotation.voidsetWrapEdges(boolean wrapEdges)Set whether to wrap at the image edges.voidsetZoom(float zoom)Set the blur zoom.StringtoString()-
从类继承的方法 org.meteoinfo.image.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
-
-
-
构造器详细资料
-
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.
-
-
方法详细资料
-
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)
-
setWrapEdges
public void setWrapEdges(boolean wrapEdges)
Set whether to wrap at the image edges.- 参数:
wrapEdges- true if it should wrap.- 另请参阅:
getWrapEdges()
-
getWrapEdges
public boolean getWrapEdges()
Get whether to wrap at the image edges.- 返回:
- true if it should wrap.
- 另请参阅:
setWrapEdges(boolean)
-
setPremultiplyAlpha
public void setPremultiplyAlpha(boolean premultiplyAlpha)
Set whether to premultiply the alpha channel.- 参数:
premultiplyAlpha- true to premultiply the alpha- 另请参阅:
getPremultiplyAlpha()
-
getPremultiplyAlpha
public boolean getPremultiplyAlpha()
Get whether to premultiply the alpha channel.- 返回:
- true to premultiply the alpha
- 另请参阅:
setPremultiplyAlpha(boolean)
-
filter
public BufferedImage filter(BufferedImage src, BufferedImage dst)
-
-