Java tutorial
//package com.java2s; import android.graphics.Bitmap; import android.graphics.BitmapFactory; public class Main { public static void loadBitmapFitWindow(String path, int nWidth) { Bitmap bitmap = BitmapFactory.decodeFile(path); int width = bitmap.getWidth(); if (width < nWidth) { } } }