You are here: Start » AVL.NET » Function Reference » Image » Image Drawing » AVL.DrawCircle

AVL.DrawCircle

Draws a circle on an image.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void DrawCircle
(
	AvlNet.Image ioImage,
	AvlNet.Circle2D inCircle,
	AvlNet.CoordinateSystem2D? inCircleAlignment,
	AvlNet.Pixel inColor,
	AvlNet.DrawingStyle inDrawingStyle
)

Parameters

Name Type Range Default Description
ioImageAvlNet.Image
inCircleAvlNet.Circle2D
inCircleAlignmentAvlNet.CoordinateSystem2D?
inColorAvlNet.Pixel
inDrawingStyleAvlNet.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(mountsImage, circle, red, style);
    }
}

Function Overrides

See also