service / com.scurab.android.uitor.tools / android.graphics.drawable.Drawable

Extensions for android.graphics.drawable.Drawable

render

Render drawable with sizes if bounds are not set

fun Drawable.render(xmlW: Int, xmlH: Int): ByteArray

renderWithBounds

fun Drawable.renderWithBounds(): ByteArray

renderWithSize

fun Drawable.renderWithSize(w: Int, h: Int): ByteArray
fun Drawable.renderWithSize(w: Int, h: Int, setBounds: Boolean): ByteArray