public class

ArtBitmapFactory

extends PlatformBitmapFactory
java.lang.Object
   ↳ com.facebook.imagepipeline.bitmaps.PlatformBitmapFactory
     ↳ com.facebook.imagepipeline.bitmaps.ArtBitmapFactory

Class Overview

Bitmap factory for ART VM (Lollipop and up).

Summary

Public Constructors
ArtBitmapFactory(BitmapPool bitmapPool, CloseableReferenceFactory closeableReferenceFactory)
Public Methods
CloseableReference<Bitmap> createBitmapInternal(int width, int height, Bitmap.Config bitmapConfig)
Creates a bitmap of the specified width and height.
[Expand]
Inherited Methods
From class com.facebook.imagepipeline.bitmaps.PlatformBitmapFactory
From class java.lang.Object

Public Constructors

public ArtBitmapFactory (BitmapPool bitmapPool, CloseableReferenceFactory closeableReferenceFactory)

Public Methods

public CloseableReference<Bitmap> createBitmapInternal (int width, int height, Bitmap.Config bitmapConfig)

Creates a bitmap of the specified width and height.

Parameters
width the width of the bitmap
height the height of the bitmap
bitmapConfig the android.graphics.Bitmap.Config used to create the decoded Bitmap
Returns
  • a reference to the bitmap
Throws
OutOfMemoryError if the Bitmap cannot be allocated