You are here: Start » FIL.NET » FIL.AlignRegion
Aligns a region to a coordinate system.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void AlignRegion ( FilNet.Region inRegion, FilNet.CoordinateSystem2D inAlignment, bool inInverse, int? inFrameWidth, int? inFrameHeight, FilNet.Region outAlignedRegion )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inRegion | FilNet.Region | Input region. | ||
![]() | inAlignment | FilNet.CoordinateSystem2D | Coordinate system to align to. | ||
![]() | inInverse | bool | Switches to the inverse transform. | ||
![]() | inFrameWidth | int? | <0, 65535> | Output region's frame width. Default value: ftl::NIL. | |
![]() | inFrameHeight | int? | <0, 65535> | Output region's frame height. Default value: ftl::NIL. | |
![]() | outAlignedRegion | FilNet.Region |
Description
AlignRegion applies inAlignment transform to an input region.
Examples
![]() |
![]() |
AlignRegion performed on the sample region, inAlignment.Origin = (280, -120), inAlignment.Angle = 45, inAlignment.Scale = 1.0 and inInverse = False. The inAlignment.Origin is drawn on the first image in blue.
Remarks
Region is a pixel-precise object, so geometrical transform may cause its deformation. Consider using a closed Path instead, which can be converted to a region in the last step.