|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.newdawn.slick.font.effects.FilterEffect
public class FilterEffect
Applys a BufferedImageOp
filter to glyphs. Many filters can be found
here: http://www.jhlabs.com/ip/filters/index.html
Constructor Summary | |
---|---|
FilterEffect()
Default constructor for injection |
|
FilterEffect(java.awt.image.BufferedImageOp filter)
Create a new filtering effect based on a convolution operation |
Method Summary | |
---|---|
void |
draw(java.awt.image.BufferedImage image,
java.awt.Graphics2D g,
UnicodeFont unicodeFont,
Glyph glyph)
Called to draw the effect. |
java.awt.image.BufferedImageOp |
getFilter()
Get the filter being applied by this effect |
void |
setFilter(java.awt.image.BufferedImageOp filter)
Set the filter being applied by this effect |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FilterEffect()
public FilterEffect(java.awt.image.BufferedImageOp filter)
filter
- The filter to applyMethod Detail |
---|
public void draw(java.awt.image.BufferedImage image, java.awt.Graphics2D g, UnicodeFont unicodeFont, Glyph glyph)
Effect
draw
in interface Effect
image
- The image to draw intog
- The graphics context to use for applying the effectunicodeFont
- The font being renderedglyph
- The particular glyph being renderedEffect.draw(java.awt.image.BufferedImage, java.awt.Graphics2D, org.newdawn.slick.UnicodeFont, org.newdawn.slick.font.Glyph)
public java.awt.image.BufferedImageOp getFilter()
public void setFilter(java.awt.image.BufferedImageOp filter)
filter
- The filter being used by this effect
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |