public void capture(Component c, String name) throws Exception {

		// old way of grabbing images--still need this if you want to capture a window's
		// decorations
		// Image image = createScreenImage(c);

		Image image = createRenderedImage(c);
		writeImage(image, name);
	}
Creates and writes to file an image of the given component.  The file will be written
to the reports directory (this differs depending upon how the test was run), nested
inside a directory structure of the form {test class name}/{test name}.  A console
statement will be written indicating the location of the written file.

@param c the component to capture
@param name the file name suffix
@throws Exception if there is any issue capturing the component
Ghidra/Framework/Docking/src/main/java/docking/test/AbstractDockingTest.java