BitmapCompat
class BitmapCompat
Helper for accessing features in android.graphics.Bitmap
.
Summary
Public methods |
static Int |
Returns the size of the allocated memory used to store this bitmap's pixels in a backwards compatible way.
|
static Boolean |
|
static Unit |
|
Public methods
getAllocationByteCount
static fun getAllocationByteCount(@NonNull bitmap: Bitmap): Int
Returns the size of the allocated memory used to store this bitmap's pixels in a backwards compatible way.
Parameters |
bitmap |
Bitmap: the bitmap in which to return its allocation size |
Return |
Int |
the allocation size in bytes |
setHasMipMap
static fun setHasMipMap(
@NonNull bitmap: Bitmap,
hasMipMap: Boolean
): Unit