SetColorLine Method

NI Vision for Visual Basic

SetColorLine Method

Syntax

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

Return Type

Long

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

Purpose

Obsolete—Use SetLine2 instead. Writes a line of pixels in a color image.

Remarks

Use this method with RGB32 images.

If the line defined by start and end is longer than the number of elements in Array, it is shortened. Only the pixels defined by Array are copied. If the line is shorter, the array is not entirely written to the image.

Parameters

DestImage As CWIMAQImage

The color image where the line is written.

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 array containing the new color values.

See Also

SetLine2