Click or drag to resize

GdiExtensionMethodsShortenBezierCurve Method

Shortens a Bezier curve by distances from its start and end.

Namespace: Altaxo.Graph.Gdi
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public static PointF[]? ShortenBezierCurve(
	PointF[] points,
	double distanceFromStart,
	double distanceFromEnd
)

Parameters

points  PointF
The Bezier curve control points.
distanceFromStart  Double
The distance to trim from the start of the curve.
distanceFromEnd  Double
The distance to trim from the end of the curve.

Return Value

PointF
The shortened curve, or if the curve cannot be shortened.
See Also