DrawLine Method

NI Vision for Visual Basic

DrawLine Method

Syntax

CWIMAQOverlay.DrawLine Line [, Color]

Purpose

Draws a line on the overlay.

Parameters

Line As CWIMAQLine

The line to draw.

Color As Variant

[Optional] The color of the overlay. If not supplied, the DefaultColor value is used.

Example

Private Sub Run_Click()
    'Create a line
    Dim Line As New CWIMAQLine
    Line.Initialize 50, 100, 100, 50
    
    'Overlay the line
    CWIMAQViewer1.Image.Overlays(1).DrawLine Line
End Sub