parse9PatchBitmap

fun Bitmap.parse9PatchBitmap(): NinePatchImage

Utility function returning NinePatchImage from a given Bitmap.

Bitmap has to be in 9-patch format (.9.png) or RuntimeException will be thrown.