キャプチャした画像が横位置で保存されているので、ポートレイトに変更したい。
ビットマップを使用せずにこれを行うには? 以下のコード画像を使用すると破損します。ビットマップを使用せずにやりたいだけです。
私のコードは次のとおりです。
Bitmap Out = null;
Bitmap Output = null;
Out = BitmapFactory.decodeByteArray(data, 0, data.length);
int w = Out.getWidth();
int h = Out.getHeight();
Matrix mtx = new Matrix();
mtx.postRotate(90);
Output = Bitmap.createBitmap(Out, 0, 0, w, h, mtx, true);
image = bitmaptoByte(Output);