get Full Bitmap - Android Graphics

Android examples for Graphics:Bitmap Read

Description

get Full Bitmap

Demo Code


//package com.java2s;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;

public class Main {

    public static Bitmap getFullBitmap(String filePath) {

        final BitmapFactory.Options options = new BitmapFactory.Options();

        Bitmap bm = BitmapFactory.decodeFile(filePath, options);
        if (bm == null) {
            return null;
        }/*  w ww . java 2  s.  c o  m*/

        return bm;

    }
}

Related Tutorials