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 create180RotatedBitmap(Bitmap srcbmp, Bitmap.Config config) {
        Matrix m = new Matrix();
        m.postRotate(180.0F);
        Bitmap newBmp = Bitmap.createBitmap(srcbmp, 0, 0, srcbmp.getWidth(), srcbmp.getHeight(), m, true);
        return newBmp;
    }
}