You are here: Start » AVL.NET » AVL.RegionIntersection Method
AVL.RegionIntersection Method
Computes the common part of two regions.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
public static void RegionIntersection( AvlNet.Region inRegion1, AvlNet.Region inRegion2, out AvlNet.Region outRegion )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inRegion1 | AvlNet.Region | First input region. | |||
inRegion2 | AvlNet.Region | Second input region. | |||
outRegion | AvlNet.Region | Output region. |
Description
The operation computes the logical intersection of two given regions. That is, the resulting region contains pixel locations that belong to both of the given regions. Both dimensions (width and height) of the resulting region are set to the minimum of the corresponding dimensions of the input regions.
Examples
Errors
Error type | Description |
---|---|
DomainError | Input and output regions are not distinct in RegionIntersection. |