public ImageData getScaledInstance(int w, int h) { if (w == 0 || h == 0)
public ImageData getScaledInstance(double sx, double sy) { if (sx == 0.0 || sy == 0.0)
	public ImageData getScaledInstance(int w, int h) {		if (w == 0 || h == 0)			return null;	    return getScaledInstance(w * 1.0 / image.getWidth(), h * 1.0 / image.getHeight());	}