Java tutorial
//package com.java2s; import java.io.File; import android.graphics.Bitmap; import android.graphics.BitmapFactory; public class Main { /** * Loads a Bitmap from a {@link File} * * @param file {@link File} to load the {@link Bitmap} from * @return Bitmap from the file-pointer */ public static Bitmap fromFile(File file) { return BitmapFactory.decodeFile(file.getAbsolutePath()); } }