Advertisement
Guest User

Untitled

a guest
Aug 12th, 2020
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.27 KB | None | 0 0
  1. val picture = SVG.getFromString(svgString).renderToPicture()
  2.         val bm = Bitmap.createBitmap(picture.width,
  3.                 picture.height,
  4.                 Bitmap.Config.RGB_565)
  5.         val c = Canvas(bm)
  6.         picture.draw(c)
  7.         icon_currency.setImageBitmap(bm)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement