标签:des android blog http io ar sp java div
/** * 把uri 转换为 bitmap 注意要关闭硬件加速!!否则会因为图片超大而不显示 * @param mContext * @param mUri * @return */ public static Bitmap readBitmapUri(Context mContext,Uri mUri) { ContentResolver contentProvider = mContext.getContentResolver(); Bitmap bmp = null; try { bmp = BitmapFactory.decodeStream(contentProvider.openInputStream(mUri)); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } return bmp; }
Bitmap too large to be uploaded into a texture
标签:des android blog http io ar sp java div
原文地址:http://www.cnblogs.com/Ringer/p/4096050.html