drawable2 Bytes
open fun drawable2Bytes(drawable: Drawable, format: Bitmap.CompressFormat): Array<Byte>
Content copied to clipboard
Drawable to bytes.
Return
bytes
Parameters
drawable
The drawable.
format
The format of bitmap.
Drawable to bytes.
bytes
The drawable.
The format of bitmap.