這是我的代碼:
File file = new File(Jpeg File size:700kb);錯誤:位圖大小超過VM預算,將圖像轉換爲ARGB_8888時
InputStream in = null;
try {
in = new BufferedInputStream(new FileInputStream(file));
}
catch (Exception e) {
// TODO: handle exception
}
bitmap =BitmapFactory.decodeStream(in);
bitmap = bitmap.copy(Bitmap.Config.ARGB_8888, true);
請您先幫我在這個副本行,我想使其ARGB_8888 image.Need幫助:(
圖像的尺寸是多少? – 2012-03-10 21:21:56
1920x2560宏.. – AsadYarKhan 2012-03-11 04:03:33
我必須要這種形式的圖像ARGB_8888,我正在使用一個tesseract OCR庫,它需要這種形式的位圖圖像,因此它可以OCR圖像.... – AsadYarKhan 2012-03-11 04:05:06