added in version 22.1.0
  
    
belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
  
   
  
  
  
  
belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
BitmapCompat
  public
  
  final
  
  class
  BitmapCompat
  
    extends Object
  
  
  
  
  
  
| java.lang.Object | |
| ↳ | android.support.v4.graphics.BitmapCompat | 
Helper for accessing features in Bitmap.
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
    added in version 22.1.0
      
  
    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
    added in version 22.1.0
      
  
    boolean hasMipMap (Bitmap bitmap)
| Parameters | |
|---|---|
| bitmap | Bitmap | 
| Returns | |
|---|---|
| boolean | |
setHasMipMap
    added in version 22.1.0
      
  
    void setHasMipMap (Bitmap bitmap, boolean hasMipMap)
| Parameters | |
|---|---|
| bitmap | Bitmap | 
| hasMipMap | boolean | 
- Classes
