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