static int calcWidth(int w, int h, int newHeight) { ret iround(doubleRatio(w, h)*newHeight); }