Skip to content

Most visited

Recently visited

navigation

BitmapCompat

public final class BitmapCompat
extends Object

java.lang.Object
   ↳ android.support.v4.graphics.BitmapCompat


Helper for accessing features in Bitmap introduced after API level 4 in a backwards compatible fashion.

Summary

Public methods

static int getAllocationByteCount(Bitmap bitmap)

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

static boolean hasMipMap(Bitmap bitmap)
static void setHasMipMap(Bitmap bitmap, boolean hasMipMap)

Inherited methods

From class java.lang.Object

Public methods

getAllocationByteCount

int getAllocationByteCount (Bitmap bitmap)

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 it's allocation size
Returns
int the allocation size in bytes

hasMipMap

boolean hasMipMap (Bitmap bitmap)

Parameters
bitmap Bitmap
Returns
boolean

setHasMipMap

void setHasMipMap (Bitmap bitmap, 
                boolean hasMipMap)

Parameters
bitmap Bitmap
hasMipMap boolean
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.