Android Bitmap Rotate rotate(Bitmap bitmap, int angle)

Here you can find the source of rotate(Bitmap bitmap, int angle)

Description

rotate

Declaration

public static Bitmap rotate(Bitmap bitmap, int angle) 

Method Source Code

//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);
    }
}

Related

  1. rotation(Bitmap source, int degrees)
  2. GetRotatedBitmap(Bitmap bitmap, int degrees)
  3. computePictureRotation()
  4. GetExifOrientation(String filepath)
  5. reflectionFromBitmap(Bitmap originalBitmap, boolean isFuzzy)
  6. rotate(Bitmap bitmap, int degrees)
  7. rotateBitmap(Bitmap bitmap, float degrees)
  8. rotateBitmap(Bitmap input, int degrees)
  9. rotateBitmapTranslate(Bitmap bitmap, float degrees)