BitmapCompat

class BitmapCompat
kotlin.Any
   ↳ androidx.core.graphics.BitmapCompat

Helper for accessing features in android.graphics.Bitmap.

Summary

Public methods
static Boolean
hasMipMap(bitmap: Bitmap)

static Unit
setHasMipMap(bitmap: Bitmap, hasMipMap: Boolean)

static Int

Returns the size of the allocated memory used to store this bitmap's pixels in a backwards compatible way.

Public methods

hasMipMap

static fun hasMipMap(bitmap: Bitmap): Boolean

setHasMipMap

static fun setHasMipMap(bitmap: Bitmap, hasMipMap: Boolean): Unit

getAllocationByteCount

static fun getAllocationByteCount(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