Package com.jhlabs.image
Class BrushedMetalFilter
- java.lang.Object
-
- com.jhlabs.image.BrushedMetalFilter
-
- All Implemented Interfaces:
java.awt.image.BufferedImageOp
public class BrushedMetalFilter extends java.lang.Object implements java.awt.image.BufferedImageOp
A filter which produces an image simulating brushed metal.
-
-
Constructor Summary
Constructors Constructor Description BrushedMetalFilter()
BrushedMetalFilter(int color, int radius, float amount, boolean monochrome, float shine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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()
java.awt.geom.Rectangle2D
getBounds2D(java.awt.image.BufferedImage src)
int
getColor()
boolean
getMonochrome()
java.awt.geom.Point2D
getPoint2D(java.awt.geom.Point2D srcPt, java.awt.geom.Point2D dstPt)
int
getRadius()
java.awt.RenderingHints
getRenderingHints()
float
getShine()
void
setAmount(float amount)
void
setColor(int color)
void
setMonochrome(boolean monochrome)
void
setRadius(int radius)
void
setRGB(java.awt.image.BufferedImage image, int x, int y, int width, int height, int[] pixels)
A convenience method for setting ARGB pixels in an image.void
setShine(float shine)
java.lang.String
toString()
-
-
-
Method Detail
-
filter
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
- Specified by:
filter
in interfacejava.awt.image.BufferedImageOp
-
blur
public void blur(int[] in, int[] out, int width, int radius)
-
setRadius
public void setRadius(int radius)
-
getRadius
public int getRadius()
-
setAmount
public void setAmount(float amount)
-
getAmount
public float getAmount()
-
setColor
public void setColor(int color)
-
getColor
public int getColor()
-
setMonochrome
public void setMonochrome(boolean monochrome)
-
getMonochrome
public boolean getMonochrome()
-
setShine
public void setShine(float shine)
-
getShine
public float getShine()
-
createCompatibleDestImage
public java.awt.image.BufferedImage createCompatibleDestImage(java.awt.image.BufferedImage src, java.awt.image.ColorModel dstCM)
- Specified by:
createCompatibleDestImage
in interfacejava.awt.image.BufferedImageOp
-
getBounds2D
public java.awt.geom.Rectangle2D getBounds2D(java.awt.image.BufferedImage src)
- Specified by:
getBounds2D
in interfacejava.awt.image.BufferedImageOp
-
getPoint2D
public java.awt.geom.Point2D getPoint2D(java.awt.geom.Point2D srcPt, java.awt.geom.Point2D dstPt)
- Specified by:
getPoint2D
in interfacejava.awt.image.BufferedImageOp
-
getRenderingHints
public java.awt.RenderingHints getRenderingHints()
- Specified by:
getRenderingHints
in interfacejava.awt.image.BufferedImageOp
-
setRGB
public void setRGB(java.awt.image.BufferedImage image, int x, int y, int width, int height, int[] pixels)
A convenience method for setting ARGB pixels in an image. This tries to avoid the performance penalty of BufferedImage.setRGB unmanaging the image.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-