getDirty

abstract fun getDirty(    width: Int,     height: Int,     config: Config): Bitmap

Identical to get except that any returned android.graphics.Bitmap may not have been erased and may contain random data.

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

Although this method is slightly more efficient than get it should be used with caution and only when the caller is sure that they are going to erase the android.graphics.Bitmap entirely before writing new data to it.

Return

A android.graphics.Bitmap with exactly the given width, height, and config potentially containing random image data.

See also

Parameters

width

The width in pixels of the desired android.graphics.Bitmap.

height

The height in pixels of the desired android.graphics.Bitmap.

config

The android.graphics.Bitmap.Config of the desired .