Catalano.Imaging.Filters
Class Rotate
- java.lang.Object
-
- Catalano.Imaging.Filters.Rotate
-
- All Implemented Interfaces:
- IApply, IApplyInPlace
public class Rotate extends java.lang.Object implements IApply, IApplyInPlace
Rotate image.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classRotate.AlgorithmInterpolation algorithm.
-
Constructor Summary
Constructors 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description FastBitmapapply(FastBitmap fastBitmap)Apply the filtervoidapplyInPlace(FastBitmap fastBitmap)Apply filter to an image.Rotate.AlgorithmgetAlgorithm()Get Interpolation algorithm.doublegetAngle()Get angle.booleanisKeepSize()Keep original size.voidsetAlgorithm(Rotate.Algorithm algorithm)Set Interpolation algorithm.voidsetAngle(double angle)Set angle [0..360].voidsetKeepSize(boolean keepSize)Set keep original size.
-
-
-
Constructor Detail
-
Rotate
public Rotate(double angle)
Initialize a new instance of the Rotate class.- Parameters:
angle- Angle.
-
Rotate
public Rotate(double angle, boolean keepSize)Initialize a new instance of the Rotate class.- Parameters:
angle- Angle.keepSize- Keep the original size.
-
Rotate
public Rotate(double angle, Rotate.Algorithm algorithm)Initialize a new instance of the Rotate class.- Parameters:
angle- Angle.algorithm- Interpolation algorithm.
-
Rotate
public Rotate(double angle, boolean keepSize, Rotate.Algorithm algorithm)Initialize a new instance of the Rotate class.- Parameters:
angle- Angle.keepSize- Keep the original size.algorithm- Interpolation algorithm.
-
-
Method Detail
-
getAngle
public double getAngle()
Get angle.- Returns:
- Angle.
-
setAngle
public void setAngle(double angle)
Set angle [0..360].- Parameters:
angle- Angle.
-
isKeepSize
public boolean isKeepSize()
Keep original size.- Returns:
- True if keep the original image size, otherwise false.
-
setKeepSize
public void setKeepSize(boolean keepSize)
Set keep original size.- Parameters:
keepSize- True if keep the original image size, otherwise false.
-
getAlgorithm
public Rotate.Algorithm getAlgorithm()
Get Interpolation algorithm.- Returns:
- Interpolation algorithm.
-
setAlgorithm
public void setAlgorithm(Rotate.Algorithm algorithm)
Set Interpolation algorithm.- Parameters:
algorithm- Interpolation algorithm.
-
apply
public FastBitmap apply(FastBitmap fastBitmap)
Description copied from interface:IApplyApply the filter
-
applyInPlace
public void applyInPlace(FastBitmap fastBitmap)
Description copied from interface:IApplyInPlaceApply filter to an image.- Specified by:
applyInPlacein interfaceIApplyInPlace- Parameters:
fastBitmap- Image to be processed.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG