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