List of utility methods to do Dimension Resize
int | getResizedDimension(int maxPrimary, int maxSecondary, int actualPrimary, int actualSecondary) get Resized Dimension if (maxPrimary == 0 && maxSecondary == 0) { return actualPrimary; if (maxPrimary == 0) { double ratio = (double) maxSecondary / (double) actualSecondary; return (int) (actualPrimary * ratio); if (maxSecondary == 0) { ... |