Class Rotate
java.lang.Object
com.cloudinary.android.preprocess.Rotate
- All Implemented Interfaces:
com.cloudinary.android.preprocess.Preprocess<android.graphics.Bitmap>
public class Rotate
extends java.lang.Object
implements com.cloudinary.android.preprocess.Preprocess<android.graphics.Bitmap>
Preprocess for rotating. Send an instance to
PreprocessChain.addStep(Preprocess) to rotate an image.-
Constructor Details
-
Rotate
public Rotate(int rotationAngle)
-
-
Method Details
-
execute
public android.graphics.Bitmap execute(android.content.Context context, android.graphics.Bitmap resource)Execute the preprocessing phase. This will rotate the image by the rotation angle property. If the rotation angle is a multiple of 360, then the original resource bitmap will be returned.- Specified by:
executein interfacecom.cloudinary.android.preprocess.Preprocess<android.graphics.Bitmap>- Parameters:
context- Android context.resource- The bitmap to rotate.- Returns:
- The rotated bitmap.
-