import Graphics; import Graphics2D; import GUI; // グラフィックスデータの生成 int graphicsID = newGraphics( ); // レンダラーの生成 int rendererID = newGraphics2DRenderer( 800, 600, graphicsID ); // 800×600 サイズのウィンドウの生成 int windowID = newWindow( 0, 0, 800, 600, " Hello , 2DCG ! " ); // 画像ラベルの生成 int labelID = newImageLabel( 0, 0, 800, 600, graphicsID ); // 画像スラベルをウィンドウに配置 mountComponent( labelID, windowID ); // GUI の描画 paintComponent( labelID ); paintComponent( windowID );