Package 

Class DimensionsValidator

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

    
    public class DimensionsValidator
     implements Preprocess<Bitmap>
                        

    A preprocess step for validating the dimensions of a given bitmap.

    • Constructor Summary

      Constructors 
      Constructor Description
      DimensionsValidator(int minWidth, int minHeight, int maxWidth, int maxHeight) Create an instance with the chosen parameters.
    • Method Summary

      Modifier and Type Method Description
      Bitmap execute(Context context, Bitmap resource)
      • 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

      • DimensionsValidator

        DimensionsValidator(int minWidth, int minHeight, int maxWidth, int maxHeight)
        Create an instance with the chosen parameters.
        Parameters:
        minWidth - Minimum allowed width
        minHeight - Minimum allowed height
        maxWidth - Maximum allowed width
        maxHeight - Maximum allowed height