public class Rotate extends java.lang.Object implements IApplyInPlace
| Modifier and Type | Class and Description |
|---|---|
static class |
Rotate.Algorithm
Interpolation algorithm.
|
| Constructor and Description |
|---|
Rotate(double angle)
Initialize a new instance of the Rotate class.
|
Rotate(double angle,
boolean keepSize)
Initialize a new instance of the Rotate class.
|
Rotate(double angle,
boolean keepSize,
Rotate.Algorithm algorithm)
Initialize a new instance of the Rotate class.
|
Rotate(double angle,
Rotate.Algorithm algorithm)
Initialize a new instance of the Rotate class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyInPlace(FastBitmap fastBitmap)
Apply filter to an image.
|
Rotate.Algorithm |
getAlgorithm()
Get Interpolation algorithm.
|
double |
getAngle()
Get angle.
|
boolean |
isKeepSize()
Keep original size.
|
void |
setAlgorithm(Rotate.Algorithm algorithm)
Set Interpolation algorithm.
|
void |
setAngle(double angle)
Set angle [0..360].
|
void |
setKeepSize(boolean keepSize)
Set keep original size.
|
public Rotate(double angle)
angle - Angle.public Rotate(double angle,
boolean keepSize)
angle - Angle.keepSize - Keep the original size.public Rotate(double angle,
Rotate.Algorithm algorithm)
angle - Angle.algorithm - Interpolation algorithm.public Rotate(double angle,
boolean keepSize,
Rotate.Algorithm algorithm)
angle - Angle.keepSize - Keep the original size.algorithm - Interpolation algorithm.public double getAngle()
public void setAngle(double angle)
angle - Angle.public boolean isKeepSize()
public void setKeepSize(boolean keepSize)
keepSize - True if keep the original image size, otherwise false.public Rotate.Algorithm getAlgorithm()
public void setAlgorithm(Rotate.Algorithm algorithm)
algorithm - Interpolation algorithm.public void applyInPlace(FastBitmap fastBitmap)
IApplyInPlaceapplyInPlace in interface IApplyInPlacefastBitmap - Image to be processed.