Creates a Shape from the outline of an SVG drawing.
Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming
C# Copy Code |
---|
public static Shape FromSvg ( |
Visual Basic Copy Code |
---|
Public Shared Function FromSvg( _ |
An SvgContent object representing the SVG drawing.
A Shape generated from the specified SVG drawing.
SVG drawings do not contain intrinsic semantic information about which elements of a drawing should be considered its outline. However the Shape class is primarily concerned with the outlines of nodes, for drawing, hit-testing and link alignment purposes. If you need the filled interior of nodes and the positions of links connected to them to match the SVG content, call this method to generate a shape outline from SVG, and assign the result to the nodes' Shape property. The shape outline is generated using a convex-hull algorithm.
NetDiagram Programmer's Guide | © 2023 MindFusion |