SetLine Method

NI Vision for Visual Basic

SetLine Method

Syntax

CWIMAQVision.SetLine DestImage, x1, y1, x2, y2, Array

Return Type

Long

On success, this method returns 0. On failure, this method returns a negative number.

Purpose

Obsolete—Use SetLine2 instead. Sets the pixel values along a line in an image.

Remarks

Use this method with U8, U16, I16,SGL,RGB32 and HSL32 images.

Parameters

DestImage As CWIMAQImage

The image whose line pixel values the method modifies.

x1 As Long

The x-coordinate of the start point.

y1 As Long

The y-coordinate of the start point.

x2 As Long

The x-coordinate of the end point.

y2 As Long

The y-coordinate of the end point.

Array As Variant

The one-dimensional array of pixel values that the method uses to replace the values in the line.

See Also

SetLine2