Click or drag to resize
Accord.NET (logo)

DrawingFillRectangle Method (BitmapData, Rectangle, Color)

Fill rectangle on the specified image.

Namespace:  Accord.Imaging
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.6.0
Syntax
public static void FillRectangle(
	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 fill.
color
Type: System.DrawingColor
Rectangle's color.
Exceptions
ExceptionCondition
UnsupportedImageFormatExceptionThe source image has incorrect pixel format.
See Also