Package com.jhlabs.image
Class BrushedMetalFilter
java.lang.Object
com.jhlabs.image.BrushedMetalFilter
- All Implemented Interfaces:
BufferedImageOp
A filter which produces an image simulating brushed metal.
-
Constructor Summary
ConstructorsConstructorDescriptionBrushedMetalFilter
(int color, int radius, float amount, boolean monochrome, float shine) -
Method Summary
Modifier and TypeMethodDescriptionvoid
blur
(int[] in, int[] out, int width, int radius) createCompatibleDestImage
(BufferedImage src, ColorModel dstCM) filter
(BufferedImage src, BufferedImage dst) float
getBounds2D
(BufferedImage src) int
getColor()
boolean
getPoint2D
(Point2D srcPt, Point2D dstPt) int
float
getShine()
void
setAmount
(float amount) void
setColor
(int color) void
setMonochrome
(boolean monochrome) void
setRadius
(int radius) void
setRGB
(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) toString()
-
Constructor Details
-
BrushedMetalFilter
public BrushedMetalFilter() -
BrushedMetalFilter
public BrushedMetalFilter(int color, int radius, float amount, boolean monochrome, float shine)
-
-
Method Details
-
filter
- Specified by:
filter
in interfaceBufferedImageOp
-
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
- Specified by:
createCompatibleDestImage
in interfaceBufferedImageOp
-
getBounds2D
- Specified by:
getBounds2D
in interfaceBufferedImageOp
-
getPoint2D
- Specified by:
getPoint2D
in interfaceBufferedImageOp
-
getRenderingHints
- Specified by:
getRenderingHints
in interfaceBufferedImageOp
-
setRGB
A convenience method for setting ARGB pixels in an image. This tries to avoid the performance penalty of BufferedImage.setRGB unmanaging the image. -
toString
-