You are here: Start » FIL.NET » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » FIL.AlignRectangle

FIL.AlignRectangle

Moves a rectangle from a local coordinate system to the absolute one.

Namespace:FilNet
Assembly:FIL.NET.dll

Syntax

C++
C#
 
public static void AlignRectangle
(
	FilNet.Rectangle2D inRectangle,
	FilNet.CoordinateSystem2D inAlignment,
	bool inInverse,
	out FilNet.Rectangle2D outAlignedRectangle
)

Parameters

Name Type Range Default Description
inRectangleFilNet.Rectangle2D
inAlignmentFilNet.CoordinateSystem2DCoordinate system to align to.
inInverseboolSwitches to the inverse transform.
outAlignedRectangleFilNet.Rectangle2D

Description

AlignRectangle aligns the inRectangle to the inAlignment coordinate system. The input rectangle is translated, rotated and scaled.

The inAlignment is usually a coordinate system found by some template matching algorithm.

Examples

AlignRectangle performed on the sample rectangle. The inAlignment is drawn on the first image in blue.

See also