You are here: Start » AVL.NET » AVL.DrawCircle Method
AVL.DrawCircle Method
Draws a circle on an image.
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
public static void DrawCircle( ref AvlNet.Image ioImage, AvlNet.Circle2D inCircle, AvlNet.CoordinateSystem2D? inCircleAlignment, AvlNet.Pixel inColor, AvlNet.DrawingStyle inDrawingStyle )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
| ioImage | AvlNet.Image | ||||
![]() | inCircle | AvlNet.Circle2D | |||
![]() | inCircleAlignment | AvlNet.CoordinateSystem2D? | |||
![]() | inColor | AvlNet.Pixel | |||
![]() | inDrawingStyle | AvlNet.DrawingStyle |
Description
The operation draws a single of circle on the ioImage. Circle may exceed the image dimensions - those will be drawn partially or not at all, but the filter execution will succeed.
Examples
Following example draws a red circles that bounds regions, which area is lower than 2000 pixels. It is a part of the bigger Blob Analysis Example.
foreach (Region mount in mounts)
{
int area;
AVL.RegionArea(mount, out area);
if (area < 2000)
{
Circle2D circle;
AVL.RegionBoundingCircle(mount, out circle);
AVL.DrawCircle(ref mountsImage, circle, red, style);
}
}

