public abstract class

PlatformBitmapFactory

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

Class Overview

Bitmap factory optimized for the platform.

Summary

Public Constructors
PlatformBitmapFactory()
Public Methods
CloseableReference<Bitmap> createBitmap(int width, int height)
Creates a bitmap of the specified width and height.
abstract CloseableReference<Bitmap> createBitmap(int width, int height, Bitmap.Config bitmapConfig)
Creates a bitmap of the specified width and height.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PlatformBitmapFactory ()

Public Methods

public CloseableReference<Bitmap> createBitmap (int width, int height)

Creates a bitmap of the specified width and height. The bitmap will be created with the default ARGB_8888 configuration

Parameters
width the width of the bitmap
height the height of the bitmap
Returns
  • a reference to the bitmap
Throws
if the pool is full
OutOfMemoryError if the Bitmap cannot be allocated

public abstract CloseableReference<Bitmap> createBitmap (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 Bitmap.Config used to create the Bitmap
Returns
  • a reference to the bitmap
Throws
if the pool is full
OutOfMemoryError if the Bitmap cannot be allocated