// リソースを破棄してプログラム終了 deleteGraphics(inputGraphics); deleteGraphics(outputGraphics); exit();