You are here: Start » AVL.NET » AVL.DrawCircle(AvlNet.Image, AvlNet.Circle2D, AvlNet.CoordinateSystem2D?, AvlNet.Pixel, AvlNet.DrawingStyle)
AVL.DrawCircle(AvlNet.Image, AvlNet.Circle2D, AvlNet.CoordinateSystem2D?, AvlNet.Pixel, AvlNet.DrawingStyle)
| 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
- ioImage
- Type: AvlNet.Image
- inCircle
- Type: AvlNet.Circle2D
- inCircleAlignment
- Type: System.Nullable<AvlNet.CoordinateSystem2D>
- inColor
- Type: AvlNet.Pixel
- inDrawingStyle
- Type: 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);
}
}
