Draw rectangle on the specified image.

Namespace:  AForge.Imaging
Assembly:  AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public static void Rectangle(
	UnmanagedImage image,
	Rectangle rectangle,
	Color color
)

Parameters

image
Type: AForge.Imaging..::.UnmanagedImage
Source image to draw on.
rectangle
Type: System.Drawing..::.Rectangle
Rectangle's coordinates to draw.
color
Type: System.Drawing..::.Color
Rectangle's color.

Exceptions

ExceptionCondition
AForge.Imaging..::.UnsupportedImageFormatExceptionThe source image has incorrect pixel format.

See Also