public Bitmap RotationPic(Bitmap tmpBitmap){
int x = tmpBitmap.getWidth();
int y = tmpBitmap.getHeight();
if(x > y){
Matrix matrix = new Matrix();
matrix.reset();
matrix.setRotate(90);
return Bitmap.createBitmap(tmpBitmap,0,0, x, y,matrix, true);
}
return tmpBitmap;
}
문장 Bitmap.createBitmap (tmpBitmap, 0,0, x, y, matrix, true); 오류가 있습니다.회전 그림 오류 : java.lang.OutOfMemoryError
나는 네트워크 그림을 읽고 그림 크기가 약 100k ~ 300k로 큽니다.
이 문제를 해결하는 방법은 무엇입니까? 그림을 회전시키는 다른 방법이 있습니까?