|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umd.cs.piccolox.util.ShadowUtils
public final class ShadowUtils
Static utility methods for creating shadows.
Method Summary | |
---|---|
static java.awt.image.BufferedImage |
createShadow(java.awt.Image src,
java.awt.Paint shadowPaint,
int blurRadius)
Create and return a new buffered image containing a shadow of the specified source image using the specifed shadow paint and gaussian blur radius. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.awt.image.BufferedImage createShadow(java.awt.Image src, java.awt.Paint shadowPaint, int blurRadius)
src.getWidth() + 4 * blurRadius
x src.getHeight() + 4 * blurRadius
to account for blurring beyond the bounds of the source image. Thus the source image
will appear to be be offset by (2 * blurRadius
, 2 * blurRadius
)
in the returned image.
src
- source image, must not be nullshadowPaint
- shadow paintblurRadius
- gaussian blur radius, must be > 0
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |