如何在没有内存exception的情况下从“onPictureTaken”旋转图片?
我在那里看过很多post? 但我找不到正确答案。 我试着这样做: @Override public void onPictureTaken(byte[] paramArrayOfByte, Camera paramCamera) { try { Bitmap bitmap = BitmapFactory.decodeByteArray(paramArrayOfByte, 0, paramArrayOfByte.length); int width = bitmap.getWidth(); int height = bitmap.getHeight(); FileOutputStream os = new ileOutputStream(Singleton.mPushFilePath); Matrix matrix = new Matrix(); matrix.postRotate(90); Bitmap resizedBitmap = Bitmap.createBitmap(bitmap, 0, 0, width, height, matrix, false); resizedBitmap.compress(Bitmap.CompressFormat.JPEG, 95, os); os.close(); … 有没有办法旋转图片,而不使用BitmapFactory? 我想要旋转图片而不会损失质量!