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