Package com.jhlabs.image
Class ShineFilter
- java.lang.Object
-
- com.jhlabs.image.AbstractBufferedImageOp
-
- com.jhlabs.image.ShineFilter
-
- All Implemented Interfaces:
java.awt.image.BufferedImageOp,java.lang.Cloneable
public class ShineFilter extends AbstractBufferedImageOp
-
-
Constructor Summary
Constructors Constructor Description ShineFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.BufferedImagefilter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)floatgetAngle()floatgetBevel()floatgetBrightness()floatgetDistance()floatgetRadius()Get the radius of the kernel.booleangetShadowOnly()intgetShineColor()floatgetSoftness()voidsetAngle(float angle)voidsetBevel(float bevel)voidsetBrightness(float brightness)voidsetDistance(float distance)voidsetRadius(float radius)Set the radius of the kernel, and hence the amount of blur.voidsetShadowOnly(boolean shadowOnly)voidsetShineColor(int shineColor)voidsetSoftness(float softness)java.lang.StringtoString()-
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB, stringToColor
-
-
-
-
Method Detail
-
setAngle
public void setAngle(float angle)
-
getAngle
public float getAngle()
-
setDistance
public void setDistance(float distance)
-
getDistance
public float getDistance()
-
setRadius
public void setRadius(float radius)
Set the radius of the kernel, and hence the amount of blur. The bigger the radius, the longer this filter will take.- Parameters:
radius- the radius of the blur in pixels.
-
getRadius
public float getRadius()
Get the radius of the kernel.- Returns:
- the radius
-
setBevel
public void setBevel(float bevel)
-
getBevel
public float getBevel()
-
setShineColor
public void setShineColor(int shineColor)
-
getShineColor
public int getShineColor()
-
setShadowOnly
public void setShadowOnly(boolean shadowOnly)
-
getShadowOnly
public boolean getShadowOnly()
-
setBrightness
public void setBrightness(float brightness)
-
getBrightness
public float getBrightness()
-
setSoftness
public void setSoftness(float softness)
-
getSoftness
public float getSoftness()
-
filter
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-