Click or drag to resize
Accord.NET (logo)

DrawingRectangle Method (BitmapData, Rectangle, Color)

Draw rectangle on the specified image.

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

Parameters

imageData
Type: System.Drawing.ImagingBitmapData
Source image data 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