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

AVL.DrawRectangle

Draws a rectangle on an image.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void DrawRectangle
(
	AvlNet.Image ioImage,
	AvlNet.Rectangle2D inRectangle,
	AvlNet.CoordinateSystem2D? inRectangleAlignment,
	AvlNet.Pixel inColor,
	AvlNet.DrawingStyle inDrawingStyle
)

Parameters

Name Type Range Default Description
ioImageAvlNet.Image
inRectangleAvlNet.Rectangle2D
inRectangleAlignmentAvlNet.CoordinateSystem2D?
inColorAvlNet.Pixel
inDrawingStyleAvlNet.DrawingStyle

Description

Filter draws rectangles on an input image.

If an rectangle dimensions exceeds image size it will not be drawn or will be drawn partially.

To indicate the Rectangle orientation set inDrawingStyle.PointShape and inDrawingStyle.Size.

Rectangle drawn with set orientation indicator inDrawingStyle.PointShape = Circle and inDrawingStyle.Size = 10.

Function Overrides

See also