Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.graphics.Bitmap;

public class Main {

    public static Bitmap reduceBitmap(Bitmap bitmap, int w, int y) {
        if (bitmap != null)
            return bitmap = Bitmap.createScaledBitmap(bitmap, w, y, true);
        else
            return null;
    }
}