You are here: Start » AVL.NET » AVL.CreateCircleRegion Method
AVL.CreateCircleRegion Method
Creates a circular region corresponding to a given circle.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
public static void CreateCircleRegion( AvlNet.Circle2D inCircle, int inFrameWidth, int inFrameHeight, out AvlNet.Region outRegion, out AvlNet.Circle2D outAlignedCircle )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inCircle | AvlNet.Circle2D | ||||
inFrameWidth | int | <0, INF> | Width of the created region's frame (not to be confused with the size of the circle!). | ||
inFrameHeight | int | <0, INF> | Height of the created region's frame (not to be confused with the size of the circle!). | ||
outRegion | AvlNet.Region | Output region. | |||
outAlignedCircle | AvlNet.Circle2D | The input circle transformed to the absolute coordinate system |
Description
The operation creates a region containing pixels lying inside the given circle.
The inFrameWidth and inFrameHeight parameters most often should be set equal to the dimensions of the image this region will be used with. If the input circle exceeds these dimensions, the output region will be cropped.