Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private fun getMarker(from: Boolean): Bitmap {
- val height = 130
- val width = 130
- var bitmapDraw : BitmapDrawable
- var b : Bitmap
- if (from){
- bitmapDraw = resources.getDrawable(getIconFrom()) as BitmapDrawable
- b = bitmapDraw.bitmap
- } else {
- bitmapDraw = resources.getDrawable(getIconTo()) as BitmapDrawable
- b = bitmapDraw.bitmap
- }
- return Bitmap.createScaledBitmap (b, width, height, false)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement