Example #1
0
        private void ExportWholeImage(EditorCanvas canvas)
        {
            var pngFilename = "note.png";
            var pngFilepath = Path.Combine(_outputDir.FullName, pngFilename);

            canvas.SaveAsPng(pngFilepath);

            //var emfFilename = "note.emf";
            //var emfFilepath = Path.Combine(_outputDir.FullName, emfFilename);
            //canvas.SaveAsEmf(emfFilepath);

            _html.AppendLine("<h3>全体イメージ</h3>");
            _html.AppendLine("<p>");
            _html.AppendLine(string.Format("<img class=\"border\" src=\"{0}\" />", pngFilename));
            _html.AppendLine("</p>");
        }