public class RotationImageEffect extends ImageEffect
Constructor and Description |
---|
RotationImageEffect(int ttl,
float angle)
Initializes a new instance of the
RotationImageEffect . |
Modifier and Type | Method and Description |
---|---|
java.awt.image.BufferedImage |
apply(java.awt.image.BufferedImage image) |
double |
getAngle() |
compareTo, getAliveTime, getName, getPriority, getTimeToLive, setName, setPriority, timeToLiveReached
public RotationImageEffect(int ttl, float angle)
RotationImageEffect
.ttl
- The time to live of this effect.angle
- The angle by which this effect rotates the base image.public java.awt.image.BufferedImage apply(java.awt.image.BufferedImage image)
apply
in class ImageEffect
public double getAngle()