// binary legacy signature static int widthForHeight(int w, int h, int newHeight) { ret iround(newHeight*doubleRatio(w, h)); } static int widthForHeight(double w, double h, int newHeight) { ret iround(newHeight*doubleRatio(w, h)); } static int widthForHeight(WidthAndHeight img, int newHeight) { ret widthForHeight(img.getWidth(), img.getHeight(), newHeight); }