You are here: Start » AVL.NET » AVL.CreateRectangleBorderRegion
Creates a frame-shaped region with given parameters.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void CreateRectangleBorderRegion ( AvlNet.Rectangle2D inRectangle, float inBorderWidth, AvlNet.BorderPosition inBorderPosition, int inFrameWidth, int inFrameHeight, AvlNet.Region outRegion, out AvlNet.Rectangle2D outAlignedRectangle )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inRectangle | AvlNet.Rectangle2D | ||||
inBorderWidth | float | <0.0f, INF> | 1.0f | Default value: 1.0f. | |
inBorderPosition | AvlNet.BorderPosition | Centered | Default value: Centered. | ||
inFrameWidth | int | <0, INF> | Width of the created region's frame. | ||
inFrameHeight | int | <0, INF> | Height of the created region's frame. | ||
outRegion | AvlNet.Region | Output region. | |||
outAlignedRectangle | AvlNet.Rectangle2D | The input rectangle transformed to the absolute coordinate system. |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Incorrect BorderPosition in CreateRectangleBorderRegion. |
Function Overrides
- CreateRectangleBorderRegion(Rectangle2D, Single, BorderPosition, Int32, Int32, Region)
- CreateRectangleBorderRegion(Rectangle2D, Nullable<CoordinateSystem2D>, Single, BorderPosition, Int32, Int32, Region)
- CreateRectangleBorderRegion(Rectangle2D, Nullable<CoordinateSystem2D>, Single, BorderPosition, Int32, Int32, Region, Rectangle2D)