Click or drag to resize
Accord.NET (logo)

DrawingLine Method (UnmanagedImage, IntPoint, IntPoint, Color)

Draw a line on the specified image.

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

Parameters

image
Type: Accord.ImagingUnmanagedImage
Source image 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