Enables path points to support additional properties such as actions, LineTo, MoveTo, etc, as well as bezier and quadratic curves, and arcs.
You do not need to enable EnableComplexPath, as it is enabled automatically in the following situations: ◼If you set points with the TIEPointFormat overload ◼If you specify as SVG path tag ◼If you import an SVG file that contains a path tag
If you set EnableComplexPath to false, the point formatting will be cleared which may change how the layer looks.
Default: False
Comparing Complex Methods 1
Three alternative methods to create a complex polyline layer: // Set path using SVG tag ImageEnView1.LayersAdd( ielkPolyline ); polyLayer := TIEPolylineLayer( ImageEnView1.CurrentLayer ); polyLayer.AsSVG := '<path d="M 10,10 L 90,10 M 50,10 L 50,190 M 10,190 L 90,190" stroke="orange" stroke-width="30" fill="none" />'; ImageEnView1.Update();
// Set path using arrays of TDPoint and TIEPointFormat ImageEnView1.LayersAdd( ielkPolyline ); polyLayer := TIEPolylineLayer( ImageEnView1.CurrentLayer ); polyLayer.BorderColor := clWebOrange; polyLayer.BorderWidth := 30; polyLayer.FillColor := clNone; polyLayer.PolylineClosed := False;
Three alternative methods to create a complex curved polyline layer: // Set path using SVG tag ImageEnView1.LayersAdd( ielkPolyline ); polyLayer := TIEPolylineLayer( ImageEnView1.CurrentLayer ); polyLayer.AsSVG := '<path d="M 70,30 C 130,-30 130,90 70,30 C 10,90 10,-30 70,30 Z" style="fill:yellow; stroke:green; stroke-width:3" />'; ImageEnView1.Update();
// Set path using arrays of TDPoint and TIEPointFormat ImageEnView1.LayersAdd( ielkPolyline ); polyLayer := TIEPolylineLayer( ImageEnView1.CurrentLayer ); polyLayer.BorderColor := clGreen; polyLayer.BorderWidth := 3; polyLayer.FillColor := clYellow;