Java tutorial
//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); } }