static int calcHeight(int w, int h, int newWidth) { ret iround(doubleRatio(h, w)*newWidth); }