You are here: Start » AVL.NET » AVL.AlignRectangle(AvlNet.Rectangle2D, AvlNet.CoordinateSystem2D, bool, AvlNet.Rectangle2D)
AVL.AlignRectangle(AvlNet.Rectangle2D, AvlNet.CoordinateSystem2D, bool, AvlNet.Rectangle2D)
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
public static void AlignRectangle( AvlNet.Rectangle2D inRectangle, AvlNet.CoordinateSystem2D inAlignment, bool inInverse, out AvlNet.Rectangle2D outRectangle )
Parameters
- inRectangle
- Type: AvlNet.Rectangle2D
- inAlignment
- Type: AvlNet.CoordinateSystem2D
- inInverse
- Type: System.Boolean
- outRectangle
- Type: AvlNet.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.


