Click or drag to resize
Accord.NET (logo)

DrawingLine Method (BitmapData, IntPoint, IntPoint, Color)

Draw a line on the specified image.

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

Parameters

imageData
Type: System.Drawing.ImagingBitmapData
Source image data to draw on.
point1
Type: AccordIntPoint
The first point to connect.
point2
Type: AccordIntPoint
The second point to connect.
color
Type: System.DrawingColor
Line's color.
Exceptions
ExceptionCondition
UnsupportedImageFormatExceptionThe source image has incorrect pixel format.
See Also