ارسم مستطيل
Contents
[
Hide
]
ارسم مستطيلاً في Visio
Aspose.Diagram for .NET API يسمح للمطورين برسم شكل مستطيل في الصفحة. يوضح مثال الكود أدناه كيفية رسم مستطيل في رسم Visio.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 Rectangle in page | |
diagram.Pages[0].DrawRectangle(1, 2, 2, 4); | |
// Save diagram | |
diagram.Save(dataDir + "DrawRectangleInPage_out.vsdx", SaveFileFormat.VSDX); |
ارسم مستطيلاً في SVG
Aspose.Diagram for .NET API يسمح للمطورين برسم مستطيل في الصفحة وحفظه بتنسيق SVG. يوضح مثال الكود أدناه كيفية رسم مستطيل في رسم Visio وحفظه بتنسيق SVG.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 Rectangle in page | |
diagram.Pages[0].DrawRectangle(1, 2, 2, 4); | |
// Save diagram as SVG images | |
SVGSaveOptions imageSaveOptions = new SVGSaveOptions(); | |
imageSaveOptions.PageIndex = 0; | |
diagram.Save(dataDir + "DrawRectangleInPage_out.svg", imageSaveOptions); |
ارسم مستطيلاً في PDF
Aspose.Diagram for .NET API يسمح للمطورين برسم مستطيل في الصفحة وحفظه بتنسيق PDF. يوضح مثال الكود أدناه كيفية رسم مستطيل في رسم Visio وحفظه بتنسيق PDF.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 Rectangle in page | |
diagram.Pages[0].DrawRectangle(1, 2, 2, 4); | |
// Save diagram | |
diagram.Save(dataDir + "DrawRectangleInPage_out.pdf", new PdfSaveOptions()); |
ارسم مستطيلاً في PNG
Aspose.Diagram for .NET API يسمح للمطورين برسم مستطيل في الصفحة وحفظه بتنسيق PNG. يوضح مثال الكود أدناه كيفية رسم مستطيل في رسم Visio وحفظه بتنسيق PNG.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 Rectangle in page | |
diagram.Pages[0].DrawRectangle(1, 2, 2, 4); | |
// Save diagram as PNG image | |
ImageSaveOptions imageSaveOptions = new ImageSaveOptions(SaveFileFormat.PNG); | |
imageSaveOptions.PageIndex = 0; | |
diagram.Save(dataDir + "DrawRectangleInPage_out.png", imageSaveOptions); |
ارسم مستطيلاً في HTML
Aspose.Diagram for .NET API يسمح للمطورين برسم مستطيل في الصفحة وحفظه بتنسيق HTML. يوضح مثال الكود أدناه كيفية رسم مستطيل في رسم Visio وحفظه بتنسيق HTML.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 Rectangle in page | |
diagram.Pages[0].DrawRectangle(1, 2, 2, 4); | |
// Save diagram | |
diagram.Save(dataDir + "DrawRectangleInPage_out.html", new HTMLSaveOptions()); |