I was testing the new Shape.EnableOutline property. It seems to work OK, but there are some problems (old and new ones) with an export of simple shapes. Export to PNG format is OK but exports to VISIO,SVG and PDF are invalid. Additionaly you have to set EnableOutline=true when exporting to SVG and PDF, otherwise an error occurs. Here is the definition of my sample shape:
shp = new MindFusion.Diagramming.Shape(
new MindFusion.Diagramming.ElementTemplate[]
{
new RoundRectangleTemplate(0, 0, 100, 100, 2)
},
new MindFusion.Diagramming.ElementTemplate[]
{
new LineTemplate(50, 0, 50, 20 ),
new LineTemplate(50, 80, 50, 100),
new RoundRectangleTemplate(35, 20, 30, 60, 0.5F )
},
new ElementTemplate[]
{
new RoundRectangleTemplate(60, 20, 100, 80, 0)
},
System.Drawing.Drawing2D.FillMode.Winding, "Resistor");
I would attach the pictures of exported shapes, but I don't know how to do it.