obtain

open fun obtain(bitmap: Bitmap, bitmapPool: BitmapPool): BitmapResource

Returns a new BitmapResource wrapping the given Bitmap if the Bitmap is non-null or null if the given Bitmap is null.

Parameters