MakeArc Method

NI Vision for Visual Basic

MakeArc Method

Syntax

CWIMAQVision.MakeArc OvalLeft, OvalTop, OvalWidth, OvalHeight, StartAngle, EndAngle

Return Type

CWIMAQArc

The new arc.

Purpose

Creates a CWIMAQArc object given the properties of the arc.

Parameters

OvalLeft As Single

The left of the oval on which this arc lies.

OvalTop As Single

The top of the oval on which this arc lies.

OvalWidth As Single

The width of the oval on which this arc lies.

OvalHeight As Single

The height of the oval on which this arc lies.

StartAngle As Single

The start angle of the arc.

EndAngle As Single

The end angle of the arc.

Example

Private Sub Run_Click()
    'Overlay an arc on the viewer
    CWIMAQViewer1.Image.Overlays(1).DrawArc CWIMAQVision1.MakeArc(50, 50, 100, 100, 15, 210), _
                                            cwimaqOverlayModePaint, vbCyan
End Sub

See Also

MakeAnnulus

MakeLine

MakeOval

MakePoint

MakePoints

MakeRectangle

MakeRotatedRectangle