import Graphics; import Graphics2D; import GUI; // Create a graphics resource int graphicsID = newGraphics( ); // Create a renderer int rendererID = newGraphics2DRenderer( 800, 600, graphicsID ); // Export the graphics resource to a PNG file exportGraphics( graphicsID, "Test.png", "PNG" );