public static int[] getScaleSizeByWidth(final Context ctx,final Bitmap bitmap,final int wid){ Bitmap bm = bitmap; if(bm!=null){ int viewWeight = wid;float width = bm.getWidth();float height = bm.getHeight(); float percente = (float)(width / 100); float scale = (float)(viewWeight / percente); width *= (scale / 100); height *= (scale / 100); //bm.recycle(); int[] i = new int[2];i[0] = (int)width;i..