code: public static BufferedImage getResized(final BufferedImage originalImage,
  		final Method scalingMethod, final Mode resizeMode, final String formatName,
  		final int targetWidth, final int targetHeight) throws IOException
  	{
  		return read(resize(originalImage, scalingMethod, resizeMode, formatName, targetWidth,
  			targetHeight));
  	}
docs: Resize the given BufferedImage and returns the resized BufferedImage.
  
  @param originalImage
  the original image
  @param scalingMethod
  the scaling method
  @param resizeMode
  the resize mode
  @param formatName
  the format name
  @param targetWidth
  the target width
  @param targetHeight
  the target height
  @return the resized
  @throws IOException
  Signals that an I/O exception has occurred.