Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.graphics.*;

public class Main {
    public static BitmapFactory.Options getBitmapDimesions(byte[] img) {

        // Make sure the bitmap is not stored in memory!
        BitmapFactory.Options options = new BitmapFactory.Options();
        options.inJustDecodeBounds = true;

        BitmapFactory.decodeByteArray(img, 0, img.length, options);

        return options;
    }
}