Rita Ellips
Rita cirkel på Visio
Aspose.Diagram for .NET API tillåter utvecklare att rita en cirkelform på en sida. Kodexemplet nedan visar hur man ritar en cirkel i en Visio-ritning.
// For complete examples and data files, please go to https://github.com/aspose-diagram/Aspose.Diagram-for-.NET | |
// The path to the documents directory. | |
string dataDir = RunExamples.GetDataDir_VisioPages(); | |
// Load diagram | |
Diagram diagram = new Diagram(dataDir + "Drawing1.vsdx"); | |
//Draw ellipse in diagram | |
diagram.Pages[0].DrawEllipse(1, 1, 2, 2); | |
// Save diagram | |
diagram.Save(dataDir + "DrawEllipseInPage_out.vsdx", SaveFileFormat.VSDX); |
Rita cirkel på SVG
Aspose.Diagram for .NET API låter utvecklare rita en cirkel på sidan och spara som SVG-format. Kodexemplet nedan visar hur man ritar en cirkel i en Visio-ritning och sparar som SVG-format.
// For complete examples and data files, please go to https://github.com/aspose-diagram/Aspose.Diagram-for-.NET | |
// The path to the documents directory. | |
string dataDir = RunExamples.GetDataDir_VisioPages(); | |
// Load diagram | |
Diagram diagram = new Diagram(dataDir + "Drawing1.vsdx"); | |
//Draw ellipse in diagram | |
diagram.Pages[0].DrawEllipse(1, 1, 2, 2); | |
// Save diagram as SVG images | |
ImageSaveOptions imageSaveOptions = new ImageSaveOptions(SaveFileFormat.SVG); | |
imageSaveOptions.PageIndex = 0; | |
diagram.Save(dataDir + "DrawEllipseInPage_out.svg", imageSaveOptions); |
Rita cirkel på PDF
Aspose.Diagram for .NET API låter utvecklare rita en cirkel på sidan och spara som PDF-format. Kodexemplet nedan visar hur man ritar en cirkel i en Visio-ritning och sparar som PDF-format.
// For complete examples and data files, please go to https://github.com/aspose-diagram/Aspose.Diagram-for-.NET | |
// The path to the documents directory. | |
string dataDir = RunExamples.GetDataDir_VisioPages(); | |
// Load diagram | |
Diagram diagram = new Diagram(dataDir + "Drawing1.vsdx"); | |
//Draw ellipse in diagram | |
diagram.Pages[0].DrawEllipse(1, 1, 2, 2); | |
// Save diagram | |
diagram.Save(dataDir + "DrawEllipseInPage_out.pdf", new PdfSaveOptions()); |
Rita cirkel på PNG
Aspose.Diagram for .NET API låter utvecklare rita en cirkel på sidan och spara som PNG-format. Kodexemplet nedan visar hur man ritar en cirkel i en Visio-ritning och sparar som PNG-format.
// For complete examples and data files, please go to https://github.com/aspose-diagram/Aspose.Diagram-for-.NET | |
// The path to the documents directory. | |
string dataDir = RunExamples.GetDataDir_VisioPages(); | |
// Load diagram | |
Diagram diagram = new Diagram(dataDir + "Drawing1.vsdx"); | |
//Draw ellipse in diagram | |
diagram.Pages[0].DrawEllipse(1, 1, 2, 2); | |
// Save diagram as PNG image | |
ImageSaveOptions imageSaveOptions = new ImageSaveOptions(SaveFileFormat.PNG); | |
imageSaveOptions.PageIndex = 0; | |
diagram.Save(dataDir + "DrawEllipseInPage_out.png", imageSaveOptions); |
Rita cirkel på HTML
Aspose.Diagram for .NET API låter utvecklare rita en cirkel på sidan och spara som HTML-format. Kodexemplet nedan visar hur man ritar en cirkel i en Visio-ritning och sparar som HTML-format.
// For complete examples and data files, please go to https://github.com/aspose-diagram/Aspose.Diagram-for-.NET | |
// The path to the documents directory. | |
string dataDir = RunExamples.GetDataDir_VisioPages(); | |
// Load diagram | |
Diagram diagram = new Diagram(dataDir + "Drawing1.vsdx"); | |
//Draw ellipse in diagram | |
diagram.Pages[0].DrawEllipse(1, 1, 2, 2); | |
// Save diagram | |
diagram.Save(dataDir + "DrawEllipseInPage_out.html", new HTMLSaveOptions()); |
Rita Oval i Visio
Aspose.Diagram for .NET API tillåter utvecklare att rita en oval form på en sida. Kodexemplet nedan visar hur man ritar en oval i en Visio-ritning.
// For complete examples and data files, please go to https://github.com/aspose-diagram/Aspose.Diagram-for-.NET | |
// The path to the documents directory. | |
string dataDir = RunExamples.GetDataDir_VisioPages(); | |
// Load diagram | |
Diagram diagram = new Diagram(dataDir + "Drawing1.vsdx"); | |
//Draw ellipse in diagram | |
diagram.Pages[0].DrawEllipse(1, 2, 2, 4); | |
// Save diagram | |
diagram.Save(dataDir + "DrawEllipseInPage_out.vsdx", SaveFileFormat.VSDX); |
Rita Oval i SVG
Aspose.Diagram for .NET API låter utvecklare rita en oval på sidan och spara som SVG-format. Kodexemplet nedan visar hur man ritar en oval i en Visio-ritning och sparar som SVG-format.
// For complete examples and data files, please go to https://github.com/aspose-diagram/Aspose.Diagram-for-.NET | |
// The path to the documents directory. | |
string dataDir = RunExamples.GetDataDir_VisioPages(); | |
// Load diagram | |
Diagram diagram = new Diagram(dataDir + "Drawing1.vsdx"); | |
//Draw ellipse in diagram | |
diagram.Pages[0].DrawEllipse(1, 2, 2, 4); | |
// Save diagram as SVG images | |
ImageSaveOptions imageSaveOptions = new ImageSaveOptions(SaveFileFormat.SVG); | |
imageSaveOptions.PageIndex = 0; | |
diagram.Save(dataDir + "DrawEllipseInPage_out.svg", imageSaveOptions); |
Rita Oval i PDF
Aspose.Diagram for .NET API låter utvecklare rita en oval på sidan och spara som PDF-format. Kodexemplet nedan visar hur man ritar en oval i en Visio-ritning och sparar som PDF-format.
// For complete examples and data files, please go to https://github.com/aspose-diagram/Aspose.Diagram-for-.NET | |
// The path to the documents directory. | |
string dataDir = RunExamples.GetDataDir_VisioPages(); | |
// Load diagram | |
Diagram diagram = new Diagram(dataDir + "Drawing1.vsdx"); | |
//Draw ellipse in diagram | |
diagram.Pages[0].DrawEllipse(1, 2, 2, 4); | |
// Save diagram | |
diagram.Save(dataDir + "DrawEllipseInPage_out.pdf", new PdfSaveOptions()); |
Rita Oval i PNG
Aspose.Diagram for .NET API låter utvecklare rita en oval på sidan och spara som PNG-format. Kodexemplet nedan visar hur man ritar en oval i en Visio-ritning och sparar som PNG-format.
// For complete examples and data files, please go to https://github.com/aspose-diagram/Aspose.Diagram-for-.NET | |
// The path to the documents directory. | |
string dataDir = RunExamples.GetDataDir_VisioPages(); | |
// Load diagram | |
Diagram diagram = new Diagram(dataDir + "Drawing1.vsdx"); | |
//Draw ellipse in diagram | |
diagram.Pages[0].DrawEllipse(1, 2, 2, 4); | |
// Save diagram as PNG image | |
ImageSaveOptions imageSaveOptions = new ImageSaveOptions(SaveFileFormat.PNG); | |
imageSaveOptions.PageIndex = 0; | |
diagram.Save(dataDir + "DrawEllipseInPage_out.png", imageSaveOptions); |
Rita Oval i HTML
Aspose.Diagram for .NET API låter utvecklare rita en oval på sidan och spara som HTML-format. Kodexemplet nedan visar hur man ritar en oval i en Visio-ritning och sparar som HTML-format.
// For complete examples and data files, please go to https://github.com/aspose-diagram/Aspose.Diagram-for-.NET | |
// The path to the documents directory. | |
string dataDir = RunExamples.GetDataDir_VisioPages(); | |
// Load diagram | |
Diagram diagram = new Diagram(dataDir + "Drawing1.vsdx"); | |
//Draw ellipse in diagram | |
diagram.Pages[0].DrawEllipse(1, 2, 2, 4); | |
// Save diagram | |
diagram.Save(dataDir + "DrawEllipseInPage_out.html", new HTMLSaveOptions()); |