我正在寻找在安卓系统中实现视频旋转的程序代码。
之前,我用以下代码完成了图像旋转。
之前,我用以下代码完成了图像旋转。
bMap = BitmapFactory.decodeResource(getResources(), R.drawable.aa_presell_ribs);
//Create object of new Matrix.
matrix = new Matrix();
//set image rotation value to 270 degrees in matrix.
matrix.postRotate(270);
//Create bitmap with new values.
Bitmap bMapRotate = Bitmap.createBitmap(bMap, 0, 0, bMap.getWidth(), bMap.getHeight(), matrix, true);
//put rotated image in ImageView.
imageView.setImageBitmap(bMapRotate);
我在谷歌和其他来源上搜索过,但是没有找到这样的代码。