Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSVclCommon > RSGraphics > Classes > TRSPathData > Methods

TRSPathData.FlattenToPolygon(TRSPolygon,Single) Method

Scroll Prev Top Next More

Converts the current TRSPathData into a sequence of connected line segments and returns the sequence as a TRSPolygon.

The Polygon parameter is the return variable. It is the result of the conversion.

Flatness is an optional parameter that specifies the maximum permitted error between the curve and its flattened approximation. By default, it is 0.25. Reducing the flatness value will increase the number of line segments in the approximation.

Namespace: RSGraphics

Parameters

Polygon

Type: System.Void

Return variable

Flatness

Type: Single

Maximum permitted error between the curve and its flattened approximation

Return Value

Type: TRSPoint

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb