Most visited

Recently visited

BitmapCompat

public final class BitmapCompat
extends Object

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


Helper用于访问在向后兼容的API级别4之后引入的 Bitmap功能。

Summary

Public methods

static int getAllocationByteCount(Bitmap bitmap)

以向后兼容的方式返回用于存储此位图像素的已分配内存的大小。

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)

以向后兼容的方式返回用于存储此位图像素的已分配内存的大小。

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

Hooray!