out

val out: Bitmap? = null

Provides an out parameter to reuse an existing Bitmap to reduce allocations.

Note though that not all formats may use the bitmap provided by the out param. In those cases, they will return a newly allocated Bitmap instead.