Draw a line on the specified image.

Namespace:  AForge.Imaging
Assembly:  AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public static void Line(
	UnmanagedImage image,
	IntPoint point1,
	IntPoint point2,
	Color color
)

Parameters

image
Type: AForge.Imaging..::.UnmanagedImage
Source image to draw on.
point1
Type: AForge..::.IntPoint
The first point to connect.
point2
Type: AForge..::.IntPoint
The second point to connect.
color
Type: System.Drawing..::.Color
Line's color.

Exceptions

ExceptionCondition
AForge.Imaging..::.UnsupportedImageFormatExceptionThe source image has incorrect pixel format.

See Also