Click or drag to resize

VectorGraphicOptimizerJoinStraightLines(VectorGraphicPath, ListBaseMetafileCommand, Double) Method

Loops through all commands in the given path and searches for polylines. Adjacent polylines are concatenated then if the second (poly)line is collinear with the first one and if it is in the given list of commands to join.

Namespace: RAYLASE.Marker.VectorGraphicElement
Assembly: RAYLASE.Marker.VectorGraphicElement (in RAYLASE.Marker.VectorGraphicElement.dll) Version: 2.19.0
Syntax
C#
public void JoinStraightLines(
	VectorGraphicPath path,
	List<BaseMetafileCommand> commandsToJoin,
	double collinearityDistance = 100
)

Parameters

path  VectorGraphicPath
The path to be worked on.
commandsToJoin  ListBaseMetafileCommand
Only commands in this list will be joined if possible.
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.
See Also