public static Image createScaledImage(Image image, int width, int height, int hints) {
		BufferedImage scaledImage = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);
		Graphics graphics = scaledImage.getGraphics();
		Graphics2D g2 = (Graphics2D) graphics;
		g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
			RenderingHints.VALUE_INTERPOLATION_BILINEAR);
		graphics.drawImage(image, 0, 0, width, height, null);
		graphics.dispose();
		return scaledImage;
	}
Creates a scaled image based upon the given image.
NOTE: Avoid invocation by a static initializer.
@param image the image to scale
@param width the new width
@param height the new height
@param hints {@link RenderingHints} used by {@link Graphics2D}
@return a scaled version of the given image
Ghidra/Framework/Gui/src/main/java/generic/util/image/ImageUtils.java