create Bitmap By Size - Android Graphics

Android examples for Graphics:Bitmap Size

Description

create Bitmap By Size

Demo Code


//package com.java2s;

import android.graphics.Bitmap;

public class Main {

    public static Bitmap createBitmapBySize(Bitmap bitmap, int width,
            int height) {
        return Bitmap.createScaledBitmap(bitmap, width, height, true);
    }// w ww  . j a  v a2  s  .c  o m
}

Related Tutorials