GetLine Method

NI Vision for Visual Basic

GetLine Method

Syntax

CWIMAQVision.GetLine SourceImage, 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 GetLine2 instead. Returns the pixel values along a given line in an image. If the starting or ending point of the line is outside the image, the line clips at the last visible pixel.

Remarks

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

Parameters

SourceImage As CWIMAQImage

The source image.

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

On return, the array of pixel values extracted from the image.

See Also

GetLine2