parse9PatchBitmap

Utility function returning NinePatchImage from a given Bitmap.

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

fun Bitmap.parse9PatchBitmap(): NinePatchImage