/** * 把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
原文:http://www.cnblogs.com/Ringer/p/4096050.html