VectorGraphicOptimizerReplaceEllipticalArcsByPolylines(VectorGraphicPath, Int32, Double) Method |
Loops through all commands of the given path and converts all
elliptical arcs to polylines.
Namespace: RAYLASE.Marker.VectorGraphicElementAssembly: RAYLASE.Marker.VectorGraphicElement (in RAYLASE.Marker.VectorGraphicElement.dll) Version: 2.19.0
Syntaxpublic void ReplaceEllipticalArcsByPolylines(
VectorGraphicPath path,
int numberOfPoints = 500,
double collinearityDistance = 100
)
Parameters
- path VectorGraphicPath
- The path to be worked on.
- numberOfPoints Int32 (Optional)
-
Number of points of the resulting polyline.
- collinearityDistance Double (Optional)
-
A point is considered to be laying on the line defined by two other points if its perpendicular distance from the line is less than this value, measured in micrometers.
See for details.
Remarks
The number of points the point list will consist of is given by
NumberOfPoints, when a whole ellipse is to be approximated. Smaller
angles needs less points but will have the same density as for a
whole ellipse. If 0 an ellipse will be approximated by 32 points.
In a second step the number of points is reduced by removing
collinear points. In this step the CollinearityDistance is used to
check on collinearity.
See Also