Click or drag to resize

GdiExtensionMethodsShortenedBy(PointF, RADouble, RADouble) Method

Returns a new, shortened polyline. If the shortened line would have zero or negative length, null is returned.

Namespace: Altaxo.Graph.Gdi
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static PointF[]? ShortenedBy(
	this PointF[] polyline,
	RADouble marginAtStart,
	RADouble marginAtEnd
)

Parameters

polyline  PointF
The points of the original polyline.
marginAtStart  RADouble
The margin at start. Either an absolute value, or relative to the total length of the polyline.
marginAtEnd  RADouble
The margin at end. Either an absolute value, or relative to the total length of the polyline.

Return Value

PointF
A new, shortened polyline. If the shortened line would have zero or negative length, null is returned.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type PointF. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also