Click or drag to resize
Accord.NET (logo)

DrawingRectangle Method (UnmanagedImage, Rectangle, Color)

Draw rectangle on the specified image.

Namespace:  Accord.Imaging
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.7.0
Syntax
public static void Rectangle(
	UnmanagedImage image,
	Rectangle rectangle,
	Color color
)
Request Example View Source

Parameters

image
Type: Accord.ImagingUnmanagedImage
Source image to draw on.
rectangle
Type: System.DrawingRectangle
Rectangle's coordinates to draw.
color
Type: System.DrawingColor
Rectangle's color.
Exceptions
ExceptionCondition
UnsupportedImageFormatExceptionThe source image has incorrect pixel format.
See Also