Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import android.graphics.Bitmap;

public class Main {
    public static Bitmap resizeBmp(Bitmap bitmap, int requiredSizeW, int requireSizeH) {
        Bitmap outBitamp = Bitmap.createBitmap(bitmap, 0, 0, requiredSizeW, requireSizeH);
        bitmap.recycle();
        return outBitamp;
    }
}