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

FIL.DrawCircle

Draws a circle on an image.

Namespace:FilNet
Assembly:FIL.NET.dll

Syntax

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

Parameters

Name Type Range Default Description
ioImageFilNet.Image
inCircleFilNet.Circle2D
inCircleAlignmentFilNet.CoordinateSystem2D?
inColorFilNet.Pixel
inDrawingStyleFilNet.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;
    FIL.RegionArea(mount, out area);
    if (area < 2000)
    {
        Circle2D circle;
        FIL.RegionBoundingCircle(mount, out circle);
        FIL.DrawCircle(mountsImage, circle, red, style);
    }
}

Function Overrides

See also