Java tutorial
//package com.java2s; import android.graphics.Bitmap; import android.graphics.Matrix; public class Main { public static Bitmap rotateImage(Bitmap bmp, int degrees) { if (degrees != 0) { Matrix matrix = new Matrix(); matrix.postRotate(degrees); return Bitmap.createBitmap(bmp, 0, 0, bmp.getWidth(), bmp.getHeight(), matrix, true); } return bmp; } }