Package 

Class Rotate

  • All Implemented Interfaces:
    com.cloudinary.android.preprocess.Preprocess

    
    public class Rotate
     implements Preprocess<Bitmap>
                        

    Preprocess for rotating. Send an instance to addStep to rotate an image.

    • Constructor Summary

      Constructors 
      Constructor Description
      Rotate(int rotationAngle)
    • Method Summary

      Modifier and Type Method Description
      Bitmap execute(Context context, Bitmap resource) Execute the preprocessing phase.
      • Methods inherited from class com.cloudinary.android.preprocess.Preprocess

        execute
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Rotate

        Rotate(int rotationAngle)
    • Method Detail

      • execute

         Bitmap execute(Context context, 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.

        Parameters:
        context - Android context.
        resource - The bitmap to rotate.