|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.github.cage.image.Rippler
public class Rippler
A filter to generate ripple (wave) effected images. Uses a transformed sinus wave for this. This class is thread safe.
Nested Class Summary | |
---|---|
static class |
Rippler.AxisConfig
Class to respresent wave tranforming information for an axis. |
Constructor Summary | |
---|---|
Rippler(Rippler.AxisConfig vertical,
Rippler.AxisConfig horizontal)
Constructor. |
Method Summary | |
---|---|
protected int[] |
calcDeltaArray(Rippler.AxisConfig axisConfig,
int num)
Calculates wave delta array. |
BufferedImage |
filter(BufferedImage src,
BufferedImage dest)
Draws a rippled (waved) variant of source into destination. |
Rippler.AxisConfig |
getHorizontal()
|
Rippler.AxisConfig |
getVertical()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Rippler(Rippler.AxisConfig vertical, Rippler.AxisConfig horizontal)
vertical
- config to calculate waving deltas from x axis (so to modify y
values), not nullhorizontal
- config to calculate waving deltas from y axis (so to modify x
values), not nullMethod Detail |
---|
public BufferedImage filter(BufferedImage src, BufferedImage dest)
src
- to be transformed, not nulldest
- to hold the result, not null
protected int[] calcDeltaArray(Rippler.AxisConfig axisConfig, int num)
axisConfig
- config object to transform the wave, not nullnum
- number of points needed, positive
public Rippler.AxisConfig getVertical()
public Rippler.AxisConfig getHorizontal()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |