浏览我们的产品

Aspose.Diagram for .NET 17.8 发行说明

改进和变化

钥匙概括类别
DIAGRAMNET-51295VSDX to SVG - the low quality of output SVG.强化
DIAGRAMNET-51298SVGSaveOptions - 添加支持以控制位图压缩级别。强化
DIAGRAMNET-51300添加使用连接索引连接形状的支持。强化
DIAGRAMNET-50577VSDX to PDF conversion, the circular shape’s text is misplaced - I.漏洞
DIAGRAMNET-50582VSDX to HTML conversion, the circular shape’s text is misplaced - I.漏洞
DIAGRAMNET-50601VSDX to PDF conversion, the circular shape’s text is misplaced - II.漏洞
DIAGRAMNET-50606VSDX to HTML conversion, the circular shape’s text is misplaced - II.漏洞
DIAGRAMNET-51197Warning triangle shapes are not rendered correctly in saving VSDM to SVG.漏洞
DIAGRAMNET-51245Displaced text items on converting a VSD to PDF.漏洞
DIAGRAMNET-51246Incorrect fonts applied to text when converting a VSD to PDF.漏洞
DIAGRAMNET-51296VSDM to SVG - the image is truncated.漏洞
DIAGRAMNET-51301VSDX to PDF - the color of text on connecting lines is changed.漏洞
DIAGRAMNET-51302VSDX to PDF - missing graphic elements.漏洞
DIAGRAMNET-51304VSDX to PDF - incomplete rendering of the flow chart.漏洞
DIAGRAMNET-51305VSDX to PDF - missing graphic elements.漏洞
DIAGRAMNET-51306VSDX to PDF - the color of text on connecting lines is changed.漏洞
DIAGRAMNET-51307VSDX to PDF - missing graphic elements.漏洞
DIAGRAMNET-51313VSDX 图形的打开和保存例程生成损坏的输出文件。漏洞
DIAGRAMNET-51314VSDX to SVG - incorrect positioning of the text.漏洞
DIAGRAMNET-51317VSDX to PDF - the text of connecting lines is missing.漏洞
DIAGRAMNET-51318VSDX to PDF - the bold formatted text of rectangle shapes is missing.漏洞
DIAGRAMNET-51319VSDM to SVG - the arithmetic operation resulted in an overflow error.漏洞
DIAGRAMNET-51320加载 VSDM 时形状元素出错。漏洞
DIAGRAMNET-51323VSDM to SVG - all connecting lines are missing.漏洞
DIAGRAMNET-51324VSDM to SVG - incorrect border style and border color of various shapes.漏洞
DIAGRAMNET-51326向形状添加两条注释后发出。漏洞
DIAGRAMNET-51327向各种形状添加注释时使用“AddComment”方法后出现问题。漏洞
DIAGRAMNET-51328Aspose Diagram 错误地将形状导入文档。漏洞
DIAGRAMNET-51330VSDM to SVG - an additional watermark text is added.漏洞
DIAGRAMNET-51332VSDM to SVG - incorrect rendering of an icon.漏洞
DIAGRAMNET-51334VSDM to SVG - displaced text at the top right corner.漏洞
DIAGRAMNET-51335VSDM to SVG - incorrect rendering of the background image.漏洞
DIAGRAMNET-51337VSD to HTML - invalid format of the input string error.漏洞

公共 API 和向后不兼容的更改

以下是对公众 API 所做的任何更改的列表,例如添加、重命名、删除或弃用成员,以及对 Aspose.Diagram for .NET 所做的任何非向后兼容更改。如果您对列出的任何更改有疑虑,请在这Aspose.Diagram 支持论坛.

在 SVGSaveOptions 类中添加 Quality 成员

它获取或设置一个值,该值决定生成图像的质量。

 string dataDir = @"c:\temp\";

// Load an existing drawing

Diagram diagram = new Diagram(dataDir + "Drawing1.vsdx");

// specify SVG export settings

SVGSaveOptions options = new SVGSaveOptions();

// set image quality

options.Quality = 100;

// save drawing in the SVG format

diagram.Save(dataDir + "UseSVGSaveOptions_out.svg", options);

在 Page 类中添加 ConnectShapesViaConnectorIndex 方法

它允许使用连接索引连接形状。

 string dataDir = @"c:\temp\";

// Load an existing drawing

Diagram diagram = new Diagram(dataDir + "Drawing1.vsdx");

// get shapes by ID

Aspose.Diagram.Shape shape1 = diagram.Pages[0].Shapes.GetShape(1);

Aspose.Diagram.Shape shape2 = diagram.Pages[0].Shapes.GetShape(2);

// add connector shapes

Aspose.Diagram.Shape connector1 = new Aspose.Diagram.Shape();

long connecter1Id = diagram.AddShape(connector1, "Dynamic connector", 0);

// connect shapes by index of conneecting points

diagram.Pages[0].ConnectShapesViaConnectorIndex(shape1.ID, 6, shape2.ID, 3, connecter1Id);

// save drawing

diagram.Save(dataDir + "UseSVGSaveOptions_out.vsdx", SaveFileFormat.VSDX);

使用示例

请查看 Aspose.Diagram Wiki 文档中添加的帮助主题列表:

  1. 使用连接索引连接形状
  2. 使用 SVG 保存选项


 
 简体中文