浏览我们的产品

If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.

 

.NET 22.6 的 Aspose.Diagram

下载  支持论坛 

文件详情

  • Downloads:
  • 1
  • File Size:
  • 12.89MB
  • Date Added:
  • 10/6/2022

文件详情

曲线形状 VSDXSVG 的转换

将 Microsoft Visio® VSDX 曲线图或简单绘图转换为 SVG(可缩放矢量图形)图像格式。以下是一个简单的 VSDX 到 SVG 转换器 C# 代码示例:

// the path to the documents directory.
string dataDir = RunExamples.GetDataDir_LoadSaveConvert();

// call the diagram constructor to load diagram from a VSD file
Diagram diagram = new Diagram(dataDir + "Drawing1.vsdx");

// create an instance SVG save options class
SVGSaveOptions options = new SVGSaveOptions();
ShapeCollection shapes = options.Shapes;

// get shapes by page index and shape ID, and then add in the shape collection object
shapes.Add(diagram.Pages[0].Shapes.GetShape(1));
shapes.Add(diagram.Pages[0].Shapes.GetShape(2));

// save Visio drawing
diagram.Save(dataDir + "SelectiveShapes_out.svg", options);

从 Visio® 转换时提高 HTML 质量

在将 Microsoft Visio® 图表转换或导出为“HTML”格式时,生成的 HTML 的质量得到了显着提高。下面是一个简单的 VSD 到 HTML 转换器 C# 代码示例:

// 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_LoadSaveConvert();
// Load diagram
Diagram diagram = new Diagram(dataDir + "ExportToHTML.vsd");
// Save diagram
diagram.Save(dataDir + "outputVSDtoHTML.html", SaveFileFormat.HTML);

获取或设置 HTML DPI 分辨率

能够以每英寸点数 (DPI) 获取或设置生成的 HTML 的分辨率。以下是一个简单的 C# 代码示例,演示了如何通过 .NET API 将 HTML 页面分辨率设置为 96 DPI:

HTMLSaveOptions option = new HTMLSaveOptions();
option.Resolution = 96;

有关此版本中已修复的功能、增强功能和错误的完整列表,请访问 Aspose.Diagram for .NET 22.6 Release Notes

 简体中文