I'm writing a program that displays some HTML text in a GUI component. I
want to be able to write the contents of the HTML component to disk in a
standard file format like GIF or JPG or PNG. Is there a simple way to dump
the contents of a component to disk in one of these formats?