This method of the WPrintGraphics Class disposes the graphics object after it is no longer being referenced.
public void dispose();