package edu.uw.cs.cse461.sp12.SNet; import android.graphics.Bitmap; import android.graphics.BitmapFactory; class BitmapLoader { private static int getScale(int originalWidth,int originalHeight, final int requiredWidth,final int requiredHeight) { //a scale of 1 means the original dimensions //of the image are maintained int scale=1; //calculate scale only if the height or width of //the image exceeds the required value. if((originalWidth>requiredWidth) || (originalHeight>requiredHeight)) { //calculate scale with respect to //the smaller dimension if(originalWidth