ImageDrawerDrawLine Method (Image, RgbColor, Int32, Point2D, Point2D)

CVB.Net Documentation
Draws a line on all planes of the given image.

Namespace:  Stemmer.Cvb
Assembly:  Stemmer.Cvb (in Stemmer.Cvb.dll) Version: 14.0.0.0
Syntax

public static void DrawLine(
	Image image,
	RgbColor color,
	int thickness,
	Point2D pt1,
	Point2D pt2
)

Parameters

image
Type: Stemmer.CvbImage
Image to draw on.
color
Type: Stemmer.CvbRgbColor
Intensity value to draw.
thickness
Type: SystemInt32
Line thickness in pixels.
pt1
Type: Stemmer.CvbPoint2D
Start point.
pt2
Type: Stemmer.CvbPoint2D
End point.
Exceptions

ExceptionCondition
ArgumentNullExceptionimage is null (Nothing in Visual Basic).
ObjectDisposedExceptionImage of given image was disposed.
ArgumentExceptionThe thickness is smaller than one or the length of color is not equal to the plane count.
Remarks

Only works on three-plane images (alpha component is ignored).
See Also

Reference