BitmapCompat
public
final
class
BitmapCompat
extends Object
java.lang.Object
|
↳ |
androidx.core.graphics.BitmapCompat
|
Helper for accessing features in Bitmap
.
Summary
Inherited methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public methods
getAllocationByteCount
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 |
Bitmap : the bitmap in which to return its allocation size |
Returns |
int |
the allocation size in bytes
|
hasMipMap
public static boolean hasMipMap (Bitmap bitmap)
setHasMipMap
public static void setHasMipMap (Bitmap bitmap,
boolean hasMipMap)
Parameters |
bitmap |
Bitmap |
hasMipMap |
boolean |