BitmapUtils

com.anywherecommerce.android.sdk.util

Class BitmapUtils

  • java.lang.Object

  • com.anywherecommerce.android.sdk.util.BitmapUtils

  • public class <span class="typeNameLabel">BitmapUtils</span>
    extends java.lang.Object
    

Constructor Summary

  Constructor and Description`<span class="memberNameLink">

BitmapUtils()`

Method Summary

  Modifier and TypeMethod and Description`static int````
  <span class="memberNameLink">

calculateInSampleSize(BitmapFactory.Options options,
int reqWidth,
int reqHeight)
`` static Bitmap````

decodeSampledBitmapFromResource(Resources res,
int resId,
int reqWidth,
int reqHeight)
`` static Bitmap````

resizeAndKeepAspectRatio(Bitmap image,
int maxWidth,
int maxHeight)
```

Methods inherited from class java.lang.Object

        `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

BitmapUtils

        `public BitmapUtils()`

Method Detail

decodeSampledBitmapFromResource

        ```
        public static Bitmap decodeSampledBitmapFromResource(Resources res,
                                                             int resId,
                                                             int reqWidth,
                                                             int reqHeight)
        ```

calculateInSampleSize

        ```
        public static int calculateInSampleSize(BitmapFactory.Options options,
                                                int reqWidth,
                                                int reqHeight)
        ```

resizeAndKeepAspectRatio

        ```
        public static Bitmap resizeAndKeepAspectRatio(Bitmap image,
                                                      int maxWidth,
                                                      int maxHeight)
        ```