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.BufferedImage
filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
float
getAngle()
float
getBevel()
float
getBrightness()
float
getDistance()
float
getRadius()
Get the radius of the kernel.boolean
getShadowOnly()
int
getShineColor()
float
getSoftness()
void
setAngle(float angle)
void
setBevel(float bevel)
void
setBrightness(float brightness)
void
setDistance(float distance)
void
setRadius(float radius)
Set the radius of the kernel, and hence the amount of blur.void
setShadowOnly(boolean shadowOnly)
void
setShineColor(int shineColor)
void
setSoftness(float softness)
java.lang.String
toString()
-
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:
toString
in classjava.lang.Object
-
-