Esempio n. 1
0
        public string ToPng(C4DocumentBase doc, string outputFolder)
        {
            string imageFileName = Path.ChangeExtension(Path.Combine(outputFolder, doc.Name), ".png");

            string encString = Encoder.EncodeUrl(doc.ToString());

            WebRenderer r     = new WebRenderer();
            var         bytes = r.Render(encString);

            File.WriteAllBytes(imageFileName, bytes);

            return(imageFileName);
        }
Esempio n. 2
0
 public string ToPuml(C4DocumentBase doc)
 {
     return(doc.ToString());
 }