private static Image doCreateRenderedImage(Component c) {
		Rectangle r = c.getBounds();
		BufferedImage bufferedImage =
			new BufferedImage(r.width, r.height, BufferedImage.TYPE_INT_ARGB);
		Graphics graphics = bufferedImage.getGraphics();
		c.paint(graphics);
		graphics.dispose();
		return bufferedImage;
	}
Creates a png of the given component <b>by capturing a screenshot of the image</b>.  This
differs from creating the image by rendering it via a {@link Graphics} object.

@param c the component
@return the new image
@throws AWTException if there is a problem creating the image
Ghidra/Framework/Docking/src/main/java/docking/test/AbstractDockingTest.java