Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

import android.graphics.Bitmap;

public class Main {
    public static Bitmap resizeImageToHalf(Bitmap source) {
        int h = source.getHeight();
        int w = source.getWidth();
        return Bitmap.createBitmap(source, 0, 0, w, h);
    }
}