ImageDrawerDrawLine Method (ImagePlane, Double, Int32, Int32, Int32, Int32, Int32)

CVB.Net Documentation
Draws a line on the given Imageplane.

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

public static void DrawLine(
	ImagePlane plane,
	double intensity,
	int thickness,
	int x1,
	int y1,
	int x2,
	int y2
)

Parameters

plane
Type: Stemmer.CvbImagePlane
Image plane to draw on.
intensity
Type: SystemDouble
Intensity value to draw.
thickness
Type: SystemInt32
Line thickness in pixels.
x1
Type: SystemInt32
X component of start point.
y1
Type: SystemInt32
Y component of start point.
x2
Type: SystemInt32
X component of end point.
y2
Type: SystemInt32
Y component of end point.
Exceptions

ExceptionCondition
ObjectDisposedExceptionImage of given plane was disposed.
ArgumentExceptionThe thickness is smaller than one.
Remarks

The intensity is clipped according to the image's data type and also the start and end points may reside outside the image (they are then simply not drawn outside the image bounds).
See Also

Reference