DrawArc Method

NI Vision for Visual Basic

DrawArc Method

Syntax

CWIMAQOverlay.DrawArc Arc, DrawMode [, Color]

Purpose

Draws an arc on the overlay.

Parameters

Arc As CWIMAQArc

The arc to draw.

DrawMode As CWIMAQOverlayModes

Defines how to draw the arc. Valid inputs are cwimaqOverlayModeFrame and cwimaqOverlayModePaint.

Color As Variant

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

Example

Private Sub Run_Click()
    'Create an arc
    Dim Arc As New CWIMAQArc
    Arc.Initialize 30, 40, 50, 60, 45, 315
    
    'Overlay the arc
    CWIMAQViewer1.Image.Overlays(1).DrawArc Arc, cwimaqOverlayModeFrame
End Sub

See Also

DefaultColor