You are here: Start » FIL.NET » Function Reference » Region » Region Spatial Transforms » FIL.RotateRegion
Rotates a region around a specified point.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void RotateRegion ( FilNet.Region inRegion, float inAngle, bool inInverse, FilNet.RotationSizeMode inSizeMode, int? inFrameWidth, int? inFrameHeight, FilNet.Region outRegion )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inRegion | FilNet.Region | Input region. | ||
![]() | inAngle | float | Clockwise rotation angle. | ||
![]() | inInverse | bool | Switches to counter-clockwise rotation. | ||
![]() | inSizeMode | FilNet.RotationSizeMode | Preserve | Determines whether to extent the region size to fit the rotated region. Default value: Preserve. | |
![]() | inFrameWidth | int? | <0, 65535> | Output region frame width, ignored when inSizeMode is set to RotationSizeMode::Fit. Default value: ftl::NIL. | |
![]() | inFrameHeight | int? | <0, 65535> | Output region frame height, ignored when inSizeMode is set to RotationSizeMode::Fit. Default value: ftl::NIL. | |
![]() | outRegion | FilNet.Region | Output region. |
Description
The operation rotates a region by the inAngle degrees around inCenter point. If the inCenter is not provided, the rotation is conducted around the mass center of the region.
Examples
![]() |
![]() |
RotateRegion performed on the sample region with inAngle set to 45.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty region on input when rotation center is Nil in RotateRegion. |
Function Overrides
- RotateRegion(Region, Nullable<Point2D>, Single, Boolean, RotationSizeMode, Nullable<Int32>, Nullable<Int32>, Region)
- RotateRegion(Region, Nullable<Point2D>, Single, Boolean, RotationSizeMode, Nullable<Int32>, Nullable<Int32>, Region, CoordinateSystem2D)
- RotateRegion(Region, Nullable<Point2D>, Single, Boolean, RotationSizeMode, Nullable<Int32>, Nullable<Int32>, Region, NullableValue<CoordinateSystem2D>)