You are here: Start » AVL.NET » Invoke.CropRegionToRectangle
Creates a region from a rectangular fragment of another one.
| Namespace: | Avl | 
|---|---|
| Assembly: | AvlNet.dll | 
Syntax
C++
C#
public static void CropRegionToRectangle ( Avl.Region inRegion, Avl.Rectangle2D inRectangle, Optional<Avl.CoordinateSystem2D> inRectangleAlignment, Avl.Region outRegion, Optional<Avl.Rectangle2D> outAlignedRectangle, Optional<Avl.CoordinateSystem2D> outOutputAlignment )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]()  | inRegion | Avl.Region | Input region. | ||
![]()  | inRectangle | Avl.Rectangle2D | Rectangle defining a rotated subregion. | ||
![]()  | inRectangleAlignment | Atl.Optional<Avl.CoordinateSystem2D> | Adjusts the rectangle to the position of the inspected object. Default value: atl::NIL. | ||
![]()  | outRegion | Avl.Region | Output region. | ||
![]()  | outAlignedRectangle | Atl.Optional<Avl.Rectangle2D> | Input rectangle after transformation (in the region coordinates). | ||
![]()  | outOutputAlignment | Atl.Optional<Avl.CoordinateSystem2D> | Alignment of the output region. | 


