Android APIs
public class

BitmapCompat

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

Class Overview

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

Summary

Public Constructors
BitmapCompat()
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)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public BitmapCompat ()

Public Methods

public static 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 the bitmap in which to return it's allocation size
Returns
  • the allocation size in bytes

public static boolean hasMipMap (Bitmap bitmap)

public static void setHasMipMap (Bitmap bitmap, boolean hasMipMap)