android的imageView獲取圖片

在使用imageVIew中的過程當中,咱們會設定參數android:scaleType="centerCrop"來實現居中縮放。咱們要獲取imageView顯示的圖片時,可使用 iv_photo.setDrawingCacheEnabled(true);Bitmap bitmap = iv_pho.getDrawingCache(),iv_photo.setDrawingCacheEnabled(
相關文章
相關標籤/搜索