You are here: Start » FIL.NET » Function Reference » Region » Region Spatial Transforms » FIL.CropRegionToQuadrangle
Creates a region from a quadrangular fragment of another one. The quadrangle must be convex.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void CropRegionToQuadrangle ( FilNet.Region inRegion, FilNet.Path inQuadrangle, FilNet.Size? inOutputSize, FilNet.CoordinateSystem2D? inQuadrangleAlignment, FilNet.Region outRegion, FilNet.Path outAlignedShape )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inRegion | FilNet.Region | Input region. | ||
![]() | inQuadrangle | FilNet.Path | A convex quadrangle defining a region to be cropped (points must be clockwise). | ||
![]() | inOutputSize | FilNet.Size? | Width and height of the output region. Default value: ftl::NIL. | ||
![]() | inQuadrangleAlignment | FilNet.CoordinateSystem2D? | Adjusts the quadrangle to the position of the inspected object. Default value: ftl::NIL. | ||
![]() | outRegion | FilNet.Region | Output region. | ||
![]() | outAlignedShape | FilNet.Path | The input quadrangle after transformation (in the region coordinates). |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Path given as an argument to CropRegionToQuadrangle is not closed. |
DomainError | Path given as an argument to CropRegionToQuadrangle should have exactly 4 points. |
Function Overrides
- CropRegionToQuadrangle(Region, Path, Region)
- CropRegionToQuadrangle(Region, Path, Nullable<Size>, Nullable<CoordinateSystem2D>, Region)
- CropRegionToQuadrangle(Region, Path, Nullable<Size>, Nullable<CoordinateSystem2D>, Region, NullableRef<Path>)