ImageUtils

open class ImageUtils

Functions

Link copied to clipboard
open fun calculateInSampleSize(@NonNull input: InputStream, width: Int, height: Int): Int
open fun calculateInSampleSize(@NonNull filePath: String, width: Int, height: Int): Int
Link copied to clipboard
open fun exifOrientationToDegrees(exifOrientation: Int): Int
Link copied to clipboard
open fun getBitmap(@NonNull path: String, width: Int, height: Int): Bitmap
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun resize(@NonNull resources: Resources, @Nullable drawable: Drawable, @DimenRes width: Int, @DimenRes height: Int): Drawable
Link copied to clipboard
open fun rotate(@NonNull bitmap: Bitmap, degree: Float): Bitmap