get

abstract fun get(@Px() width: Int, @Px() height: Int, config: Bitmap.Config): Bitmap

Return a Bitmap of exactly the given width, height, and configuration, and containing only transparent pixels.

If no bitmap with the requested attributes is present in the pool, a new one will be allocated.

Because this method erases all pixels in the Bitmap, this method is slightly slower than getDirty. If the Bitmap is being obtained to be used in BitmapFactory or in any other case where every pixel in the Bitmap will always be overwritten or cleared, getDirty will be faster. When in doubt, use this method to ensure correctness.