|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jhlabs.image.BrushedMetalFilter
public class BrushedMetalFilter
A filter which produces an image simulating brushed metal.
Constructor Summary | |
---|---|
BrushedMetalFilter()
Constructs a BrushedMetalFilter object. |
|
BrushedMetalFilter(int color,
int radius,
float amount,
boolean monochrome,
float shine)
Constructs a BrushedMetalFilter object. |
Method Summary | |
---|---|
void |
blur(int[] in,
int[] out,
int width,
int radius)
|
java.awt.image.BufferedImage |
createCompatibleDestImage(java.awt.image.BufferedImage src,
java.awt.image.ColorModel dstCM)
|
java.awt.image.BufferedImage |
filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dst)
|
float |
getAmount()
Get the amount of noise to add. |
java.awt.geom.Rectangle2D |
getBounds2D(java.awt.image.BufferedImage src)
|
int |
getColor()
Get the color of the metal. |
boolean |
getMonochrome()
Get the type of noise to add. |
java.awt.geom.Point2D |
getPoint2D(java.awt.geom.Point2D srcPt,
java.awt.geom.Point2D dstPt)
|
int |
getRadius()
Get the horizontal size of the blur. |
java.awt.RenderingHints |
getRenderingHints()
|
float |
getShine()
Get the amount of shine to add in the range 0..1. |
void |
setAmount(float amount)
Set the amount of noise to add in the range 0..1. |
void |
setColor(int color)
Set the color of the metal. |
void |
setMonochrome(boolean monochrome)
Set the type of noise to add. |
void |
setRadius(int radius)
Set the horizontal size of the blur. |
void |
setShine(float shine)
Set the amount of shine to add to the range 0..1. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BrushedMetalFilter()
public BrushedMetalFilter(int color, int radius, float amount, boolean monochrome, float shine)
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 addMethod Detail |
---|
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
filter
in interface java.awt.image.BufferedImageOp
public void blur(int[] in, int[] out, int width, int radius)
public void setRadius(int radius)
radius
- the radius of the blur in the horizontal directiongetRadius()
public int getRadius()
setRadius(int)
public void setAmount(float amount)
amount
- the amount of noisegetAmount()
public float getAmount()
setAmount(float)
public void setShine(float shine)
shine
- the amount of shinegetShine()
public float getShine()
setShine(float)
public void setColor(int color)
color
- the color in ARGB formgetColor()
public int getColor()
setColor(int)
public void setMonochrome(boolean monochrome)
monochrome
- true for monochrome noisegetMonochrome()
public boolean getMonochrome()
setMonochrome(boolean)
public java.awt.image.BufferedImage createCompatibleDestImage(java.awt.image.BufferedImage src, java.awt.image.ColorModel dstCM)
createCompatibleDestImage
in interface java.awt.image.BufferedImageOp
public java.awt.geom.Rectangle2D getBounds2D(java.awt.image.BufferedImage src)
getBounds2D
in interface java.awt.image.BufferedImageOp
public java.awt.geom.Point2D getPoint2D(java.awt.geom.Point2D srcPt, java.awt.geom.Point2D dstPt)
getPoint2D
in interface java.awt.image.BufferedImageOp
public java.awt.RenderingHints getRenderingHints()
getRenderingHints
in interface java.awt.image.BufferedImageOp
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |