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