private static void generarImagen(ParseTreeNode raiz) { String grafoDOT = Graficas.Grafica.getDOT(raiz); WINGRAPHVIZLib.DOT dot = new WINGRAPHVIZLib.DOT(); WINGRAPHVIZLib.BinaryImage img = dot.ToPNG(grafoDOT); img.Save("AST.png"); }
public static void generarImagen(ParseTreeNode raiz) { String grafoDOT = controlDOT.getDOT(raiz); WINGRAPHVIZLib.DOT dot = new WINGRAPHVIZLib.DOT(); WINGRAPHVIZLib.BinaryImage img = dot.ToPNG(grafoDOT); img.Save("grafo.png"); }
private static void generarImagen(ParseTreeNode raiz) { string grafoDOT = clases.diagramaDOT.getDOT(raiz); WINGRAPHVIZLib.DOT dot = new WINGRAPHVIZLib.DOT(); WINGRAPHVIZLib.BinaryImage img = dot.ToPNG(grafoDOT); img.Save("AST.png"); }
public static void getAST(ParseTreeNode raiz, String Nombre) { String grafoDOT = Graficar.arbolDOT.getDOT2(raiz); WINGRAPHVIZLib.DOT dot = new WINGRAPHVIZLib.DOT(); WINGRAPHVIZLib.BinaryImage img = dot.ToJPEG(grafoDOT); img.Save(Nombre); }
public static void getImage(ParseTreeNode raiz) { String grafoDOT = Graficar.arbolDOT.getDOT(raiz); WINGRAPHVIZLib.DOT dot = new WINGRAPHVIZLib.DOT(); WINGRAPHVIZLib.BinaryImage img = dot.ToJPEG(grafoDOT); img.Save("ast.jpeg"); }
public static void generarImagen(ParseTreeNode raiz) { String grafoDOT = getDOT(raiz); WINGRAPHVIZLib.DOT dot = new WINGRAPHVIZLib.DOT(); WINGRAPHVIZLib.BinaryImage img = dot.ToPNG(grafoDOT); // MessageBox.Show(grafoDOT); //img.Save("C:\\Users\\ROBIN SALVATIERRA\\Dropbox\\OLC2\\OLC2_P1\\Proyecto1_200915428\\Proyecto1_200915428\\entradas\\robast.png"); img.Save("robast.png"); }
private static void generarImagen2(ParseTreeNode raiz) { string grafoDOT = AST.diagramaDOT.getDOT(raiz); WINGRAPHVIZLib.DOT dot = new WINGRAPHVIZLib.DOT(); WINGRAPHVIZLib.BinaryImage img = dot.ToPNG(grafoDOT); String path = Directory.GetCurrentDirectory() + "\\AST.png"; Console.Write(path); img.Save(path); }