类 BrushedMetalFilter
- java.lang.Object
-
- org.meteoinfo.image.filter.BrushedMetalFilter
-
- 所有已实现的接口:
BufferedImageOp
public class BrushedMetalFilter extends Object implements BufferedImageOp
A filter which produces an image simulating brushed metal.
-
-
构造器概要
构造器 构造器 说明 BrushedMetalFilter()Constructs a BrushedMetalFilter object.BrushedMetalFilter(int color, int radius, float amount, boolean monochrome, float shine)Constructs a BrushedMetalFilter object.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidblur(int[] in, int[] out, int width, int radius)BufferedImagecreateCompatibleDestImage(BufferedImage src, ColorModel dstCM)BufferedImagefilter(BufferedImage src, BufferedImage dst)floatgetAmount()Get the amount of noise to add.Rectangle2DgetBounds2D(BufferedImage src)intgetColor()Get the color of the metal.booleangetMonochrome()Get the type of noise to add.Point2DgetPoint2D(Point2D srcPt, Point2D dstPt)intgetRadius()Get the horizontal size of the blur.RenderingHintsgetRenderingHints()floatgetShine()Get the amount of shine to add in the range 0..1.voidsetAmount(float amount)Set the amount of noise to add in the range 0..1.voidsetColor(int color)Set the color of the metal.voidsetMonochrome(boolean monochrome)Set the type of noise to add.voidsetRadius(int radius)Set the horizontal size of the blur.voidsetShine(float shine)Set the amount of shine to add to the range 0..1.StringtoString()
-
-
-
构造器详细资料
-
BrushedMetalFilter
public BrushedMetalFilter()
Constructs a BrushedMetalFilter object.
-
BrushedMetalFilter
public BrushedMetalFilter(int color, int radius, float amount, boolean monochrome, float shine)Constructs a BrushedMetalFilter object.- 参数:
color- an int specifying the metal colorradius- an int specifying the blur sizeamount- a float specifying the amount of texturemonochrome- a boolean -- true for monochrome textureshine- a float specifying the shine to add
-
-
方法详细资料
-
filter
public BufferedImage filter(BufferedImage src, BufferedImage dst)
- 指定者:
filter在接口中BufferedImageOp
-
blur
public void blur(int[] in, int[] out, int width, int radius)
-
setRadius
public void setRadius(int radius)
Set the horizontal size of the blur.- 参数:
radius- the radius of the blur in the horizontal direction- 另请参阅:
getRadius()
-
getRadius
public int getRadius()
Get the horizontal size of the blur.- 返回:
- the radius of the blur in the horizontal direction
- 另请参阅:
setRadius(int)
-
setAmount
public void setAmount(float amount)
Set the amount of noise to add in the range 0..1.- 参数:
amount- the amount of noise- 另请参阅:
getAmount()
-
getAmount
public float getAmount()
Get the amount of noise to add.- 返回:
- the amount of noise
- 另请参阅:
setAmount(float)
-
setShine
public void setShine(float shine)
Set the amount of shine to add to the range 0..1.- 参数:
shine- the amount of shine- 另请参阅:
getShine()
-
getShine
public float getShine()
Get the amount of shine to add in the range 0..1.- 返回:
- the amount of shine
- 另请参阅:
setShine(float)
-
setColor
public void setColor(int color)
Set the color of the metal.- 参数:
color- the color in ARGB form- 另请参阅:
getColor()
-
getColor
public int getColor()
Get the color of the metal.- 返回:
- the color in ARGB form
- 另请参阅:
setColor(int)
-
setMonochrome
public void setMonochrome(boolean monochrome)
Set the type of noise to add.- 参数:
monochrome- true for monochrome noise- 另请参阅:
getMonochrome()
-
getMonochrome
public boolean getMonochrome()
Get the type of noise to add.- 返回:
- true for monochrome noise
- 另请参阅:
setMonochrome(boolean)
-
createCompatibleDestImage
public BufferedImage createCompatibleDestImage(BufferedImage src, ColorModel dstCM)
- 指定者:
createCompatibleDestImage在接口中BufferedImageOp
-
getBounds2D
public Rectangle2D getBounds2D(BufferedImage src)
- 指定者:
getBounds2D在接口中BufferedImageOp
-
getPoint2D
public Point2D getPoint2D(Point2D srcPt, Point2D dstPt)
- 指定者:
getPoint2D在接口中BufferedImageOp
-
getRenderingHints
public RenderingHints getRenderingHints()
- 指定者:
getRenderingHints在接口中BufferedImageOp
-
-