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.media.ThumbnailUtils;

public class Main {

    public static Bitmap changeBitmap(Bitmap bitmap, int w, int h) {
        Bitmap localBitmap = ThumbnailUtils.extractThumbnail(bitmap, w, h);
        bitmap.recycle();
        return localBitmap;
    }
}