Java tutorial
//package com.java2s; import android.graphics.Bitmap; import android.graphics.Matrix; public class Main { public static Bitmap rotateBitmap(Bitmap srcBitmap, int rotate) { Bitmap rotateBitmap = null; Matrix matrix = new Matrix(); matrix.postRotate(rotate); rotateBitmap = Bitmap.createBitmap(srcBitmap, 0, 0, srcBitmap.getWidth(), srcBitmap.getHeight(), matrix, true); return rotateBitmap; } }