LoginSignup
4
1

More than 5 years have passed since last update.

ImageViewで表示されている画像をBitmap型で取得する(Kotlin)

Posted at

個人的なメモとして残しておく

一応できたけど本当にこれでいいの?

ImageViewに張り付いている画像を取得したかったがいろいろはまってしまった、、、
一応デバッグ実行してちゃんととれているのは確認したんですが、本当にこれでいいんですかね?、、、、

※Kotlinで書いているのでご了承ください

val groupIcon = (uploadeImage.drawable as BitmapDrawable).bitmap

なんか美しくない、、、
もっといい方法あったら教えてください、、、

4
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
1