get Large Bitmap - Android Graphics

Android examples for Graphics:Bitmap Resize

Description

get Large Bitmap

Demo Code


//package com.java2s;

import android.graphics.Bitmap;
import android.graphics.Bitmap.Config;
import android.graphics.BitmapFactory;
import android.graphics.BitmapFactory.Options;

public class Main {
    public static Bitmap getLargeBitmap(String path) {
        Bitmap bmp = null;//w  w  w  .j  av  a2 s .  c  o  m
        Options opts = new Options();
        opts.inPreferredConfig = Config.ARGB_8888;
        bmp = BitmapFactory.decodeFile(path, opts);
        return bmp;
    }
}

Related Tutorials