Click or drag to resize

VectorGraphicOptimizerReplaceStraightCurvesByLines(VectorGraphicLayer, Double) Method

Checks if the control point(s) of a cubic or quadratic curve are laying on the line defined by the curve's start and end point. If yes, the curve is replaced by a line.

Namespace: RAYLASE.Marker.VectorGraphicElement
Assembly: RAYLASE.Marker.VectorGraphicElement (in RAYLASE.Marker.VectorGraphicElement.dll) Version: 2.19.0
Syntax
C#
public void ReplaceStraightCurvesByLines(
	VectorGraphicLayer layer,
	double collinearityDistance = 100
)

Parameters

layer  VectorGraphicLayer
The layer to be worked on.
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
CollinearityDistance determines how close (in micrometers) a control point should be to the line to consider it to be on the line. See for details.
See Also