public static RenderedImage toRenderedImage(Image image) {
		if (image instanceof RenderedImage) {
			return (RenderedImage) image;
		}

		return getBufferedImage(image);
	}
Turns the given image into a {@link RenderedImage}

@param image the image
@return the rendered image
Ghidra/Framework/Gui/src/main/java/generic/util/image/ImageUtils.java