Android Bitmap Option Get getImageOptions(String filePath)

Here you can find the source of getImageOptions(String filePath)

Description

get Image Options

Declaration

public static BitmapFactory.Options getImageOptions(String filePath)
            throws Exception 

Method Source Code

//package com.java2s;

import android.graphics.BitmapFactory;

public class Main {
    public static BitmapFactory.Options getImageOptions(String filePath)
            throws Exception {
        BitmapFactory.Options opts = new BitmapFactory.Options();
        opts.inJustDecodeBounds = true;/*ww  w.j  a va 2 s.co  m*/
        BitmapFactory.decodeFile(filePath, opts);
        return opts;
    }
}

Related

  1. getConfig(Bitmap bitmap)