安卓 获取imageview的bitmap,并保存,用于app头像上传获取
第一步:获取bitmapImageView userlogo;Bitmap image = ((BitmapDrawable)userlogo.getDrawable()).getBitmap();第二步:头像保存在本地sd卡里saveAvtar(image);public void saveAvtar(Bitmap bitmap){ //bitmap =
原创
2015-11-27 16:07:32 ·
1997 阅读 ·
0 评论