You are here: Start » AVL.NET » AVL.CreatePathBorderRegion(AvlNet.Path, AvlNet.CoordinateSystem2D?, float, AvlNet.BorderPosition, int, int, AvlNet.Region, AvlNet.Path)

AVL.CreatePathBorderRegion(AvlNet.Path, AvlNet.CoordinateSystem2D?, float, AvlNet.BorderPosition, int, int, AvlNet.Region, AvlNet.Path)

Creates a region from a path with given parameters.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void CreatePathBorderRegion(
	AvlNet.Path inPath,
	AvlNet.CoordinateSystem2D? inPathAlignment,
	float inBorderWidth,
	AvlNet.BorderPosition inBorderPosition,
	int inFrameWidth,
	int inFrameHeight,
	out AvlNet.Region outRegion,
	out AvlNet.Path outAlignedPath
)

Parameters

inPath
Type: AvlNet.Path
Input path
inPathAlignment
Type: System.Nullable<AvlNet.CoordinateSystem2D>
Adjusts the path to the position of the inspected object, or null.
inBorderWidth
Type: System.Single
inBorderPosition
Type: AvlNet.BorderPosition
inFrameWidth
Type: System.Int32
Width of the created region's frame
inFrameHeight
Type: System.Int32
Height of the created region's frame
outRegion
Type: AvlNet.Region
Output region
outAlignedPath
Type: AvlNet.Path

Errors

Error type Description
DomainError Incorrect BorderPosition in CreatePathBorderRegion.

See also