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.BitmapFactory;

public class Main {
    public static Bitmap createBitmap(String paramString, int paramInt1, int paramInt2) {

        Bitmap localBitmap1 = BitmapFactory.decodeFile(paramString);
        Bitmap localBitmap2 = null;

        if (localBitmap1 != null) {
            localBitmap2 = Bitmap.createScaledBitmap(localBitmap1, paramInt1, paramInt2, true);
            localBitmap1.recycle();
        }

        return localBitmap2;
    }
}