120121122123124125126127128129130131
Math.max(size1.height, size2.height)); break; default: throw new IllegalStateException("mode is not recognized"); } Image r1 = resize(image1, size); Image r2 = resize(image2, size); if(r1 == null) { return image1; } if(r2 == null) { return image2;