Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.graphics.Bitmap;

import android.graphics.Matrix;

public class Main {
    public static Bitmap flipBitmap(Bitmap bm) {
        Matrix matrix = new Matrix();
        matrix.postRotate(90);
        int width = bm.getWidth();
        int height = bm.getHeight();
        bm = Bitmap.createBitmap(bm, 0, 0, width, height, matrix, true);
        return bm;
    }
}