DrawOval Method

NI Vision for Visual Basic

DrawOval Method

Syntax

CWIMAQOverlay.DrawOval Oval, DrawMode [, Color]

Purpose

Draws an oval on the overlay.

Parameters

Oval As CWIMAQOval

The oval to draw.

DrawMode As CWIMAQOverlayModes

Defines how to draw the points. 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 oval
    Dim Oval As New CWIMAQOval
    Oval.Initialize 39, 45, 180, 89
    
    'Overlay the oval, filled in
    CWIMAQViewer1.Image.Overlays(1).DrawOval Oval, cwimaqOverlayModePaint
End Sub