Click or drag to resize

VectorGraphicOptimizerRemoveStraightPoints(VectorGraphicPath, Double) Method

Loops through all commands in the given path, checks all PolyLineMetafileCommands and tries to remove all "linear" points from them.

Namespace: RAYLASE.Marker.VectorGraphicElement
Assembly: RAYLASE.Marker.VectorGraphicElement (in RAYLASE.Marker.VectorGraphicElement.dll) Version: 2.19.0
Syntax
C#
public void RemoveStraightPoints(
	VectorGraphicPath path,
	double collinearityDistance = 100
)

Parameters

path  VectorGraphicPath
The path 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
A polyline like this:

              *  *  *  *  *                 *
          *                  *           *
      *                         *     *
  *                                *

will be replaced by this:

              *           *                 *


  *                                *
See Also