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 getThumbnailsBitmap(Bitmap bitmap, int height, int width) {
        if (bitmap == null) {
            throw new IllegalArgumentException("Bitmap is null, please check you param");
        }
        return ThumbnailUtils.extractThumbnail(bitmap, width, height);
    }
}