drawable2Bytes

open fun drawable2Bytes(drawable: Drawable, format: Bitmap.CompressFormat): Array<Byte>

Drawable to bytes.

Return

bytes

Parameters

drawable

The drawable.

format

The format of bitmap.