Show/Hide Toolbars

RiverSoftAVG Products Help

TRSPathData represents a series of connected curves and lines.

noteNote

Unlike the Delphi TPathData class, TRSPathData works with both FMX and VCL and may be drawn to either libraries' TCanvas. The TRSPathData class provides much more robust parsing of data strings than TPathData to fulfill the SVG specification for paths. Finally, there are many additional methods in TRSPathData compared to TPathData (for example, AddPolygon).

Use TRSPathData to build graphic shapes by connecting a series of curves and lines. TRSPathData can be drawn and filled on objects that have a TCanvas as a component. For VCL, call the    DrawPath and    FillPath methods. The TVclCanvasHelper also implements DrawPath and FillPath methods for VCL TCanvas.

TRSPathData maintains the coordinates of geometric shapes in world coordinate space in an array of FMX.RS.Graphics.TRSPathPoint. Each saved point has a specific type, to identify the primitive shape it is defining. Complex shapes of a TRSPathData are composed of a sequence of primitive shapes like lines and curves. To access the array of TRSPathPoint, use Count and Points.

A TRSPathData can be initialized by setting the Data property, or by adding explicitly each new shape. TRSPathData has defined a way to add shapes explicitly. See the TRSPathData functions.
 
When a TRSPathData is constructed, each new added shape is appended to the end of the TRSPathData, by default. The start point of the new shape is the end point of the previous shape. To customize the start point of a new element to be added, use the MoveTo or MoveToRel method.
 

Namespace: FMX.RS.Graphics

public property

Distances

Returns the distance to every point in the path

noteNote

It is recommended to  Flatten the path before calling this property.

public property

FillMode

Specifies how to fill areas that are formed when the path intersects itself.

noteNote

This property is ignored in FMX.

public property

FormatStr

Defines a floating point format string for writing out the path points.

Use the FormatStr property to control the size of the Data string.

public property

OnChanged

Occurs when the path data has changed.

Write an OnChanged event handler to respond to path changes.

public property

Polygons

Returns the polygons (array of points) that make up the path.

noteNote

It is recommended to  Flatten the path before calling this property.

protected property

UpdateCount

Tracks the number of times   BeginUpdate has been called without a corresponding   EndUpdate call.

Top

Top

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb