Here you can find the source of rotate(Bitmap bitmap, int angle)
public static Bitmap rotate(Bitmap bitmap, int angle)
//package com.java2s; import android.graphics.Bitmap; import android.graphics.Matrix; public class Main { public static Bitmap rotate(Bitmap bitmap, int angle) { Matrix m = new Matrix(); int width = bitmap.getWidth(); int height = bitmap.getHeight(); m.setRotate(angle);/* w w w .j av a2s .c o m*/ return Bitmap.createBitmap(bitmap, 0, 0, width, height, m, true); } }