Here you can find the source of check(BufferedImage image, int resizeWidth, int resizeHeight)
private static boolean check(BufferedImage image, int resizeWidth, int resizeHeight)
//package com.java2s; //License from project: Open Source License import java.awt.image.BufferedImage; public class Main { private static boolean check(BufferedImage image, int resizeWidth, int resizeHeight) { return (image.getHeight() > resizeHeight && resizeHeight > 0) || (image.getWidth() > resizeWidth && resizeWidth > 0); }//from w w w . ja v a2s. c o m }