return getScaledInstance(w * 1.0 / image.getWidth(), h * 1.0 / image.getHeight());
AffineTransform tx = new AffineTransform(); tx.setToScale(sx, sy); AffineTransformOp op = new AffineTransformOp(tx, AffineTransformOp.TYPE_BILINEAR); return new ImageData(op.filter(image,null), name, url, similarity);
	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());	}