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 toPreprocessChain.addStep(Preprocess)to rotate an image.
-
-
Constructor Summary
Constructors Constructor Description Rotate(int rotationAngle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description android.graphics.Bitmapexecute(android.content.Context context, android.graphics.Bitmap resource)Execute the preprocessing phase.
-
-
-
Method Detail
-
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.
-
-