Java tutorial
//package com.java2s; import android.graphics.Bitmap; import android.graphics.Matrix; public class Main { public static Bitmap rotateFromDegree(Bitmap bitmap, int degree) { if (bitmap == null || degree == 0) return bitmap; Matrix matrix = new Matrix(); matrix.preRotate(degree); Bitmap mBitmap = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), matrix, true); return mBitmap; } }