Package com.jhlabs.image
Class ShadowFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.ShadowFilter
- All Implemented Interfaces:
BufferedImageOp
,Cloneable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfilter
(BufferedImage src, BufferedImage dst) boolean
float
getAngle()
float
float
float
Get the radius of the kernel.int
boolean
void
setAddMargins
(boolean addMargins) void
setAngle
(float angle) void
setDistance
(float distance) void
setOpacity
(float opacity) void
setRadius
(float radius) Set the radius of the kernel, and hence the amount of blur.void
setShadowColor
(int shadowColor) void
setShadowOnly
(boolean shadowOnly) toString()
protected void
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
Constructor Details
-
ShadowFilter
public ShadowFilter() -
ShadowFilter
public ShadowFilter(float radius, float xOffset, float yOffset, float opacity)
-
-
Method Details
-
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
-
setOpacity
public void setOpacity(float opacity) -
getOpacity
public float getOpacity() -
setShadowColor
public void setShadowColor(int shadowColor) -
getShadowColor
public int getShadowColor() -
setAddMargins
public void setAddMargins(boolean addMargins) -
getAddMargins
public boolean getAddMargins() -
setShadowOnly
public void setShadowOnly(boolean shadowOnly) -
getShadowOnly
public boolean getShadowOnly() -
transformSpace
-
filter
-
toString
-