BitmapUtils

open class BitmapUtils

Utility class for creating bitmaps

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Convert a view to a bitmap.
Link copied to clipboard
open fun equals(bitmap: Bitmap, other: Bitmap): Boolean
Validates if the bytes of a bitmap matches another
Link copied to clipboard
Extract an underlying bitmap from a drawable
Link copied to clipboard
Create a byte array out of drawable
Link copied to clipboard
Decode byte array to drawable object
Link copied to clipboard
open fun getDrawableFromRes(@NonNull context: Context, @DrawableRes drawableRes: Int): Drawable
Get a drawable from a resource.
open fun getDrawableFromRes(@NonNull context: Context, @DrawableRes drawableRes: Int, @Nullable @ColorInt tintColor: Integer): Drawable
Get a tinted drawable from a resource.
Link copied to clipboard
open fun mergeBitmap(@NonNull background: Bitmap, @NonNull foreground: Bitmap): Bitmap
Create a bitmap from a background and a foreground bitmap.
open fun mergeBitmap(@NonNull background: Bitmap, @NonNull foreground: Bitmap, left: Float, top: Float): Bitmap
Create a bitmap from a background and a foreground bitmap
Link copied to clipboard
open fun mergeBitmaps(@NonNull background: Bitmap, @NonNull foreground: Bitmap): Bitmap
Create a bitmap from a background and a foreground bitmap.