Initialize Method
Syntax
CWIMAQArc.Initialize OvalLeft, OvalTop, OvalWidth, OvalHeight, StartAngle, EndAngle
Purpose
Sets all of the properties of the arc with one method call.
Parameters
OvalLeft As Single
The left of the oval that this arc lies on.
OvalTop As Single
The top of the oval that this arc lies on.
OvalWidth As Single
The width of the oval that this arc lies on.
OvalHeight As Single
The height of the oval that this arc lies on.
StartAngle As Single
The start angle of the arc.
EndAngle As Single
The end angle of the arc.
Example
Private Sub Run_Click() Dim Arc1 As New CWIMAQArc Dim Arc2 As New CWIMAQArc 'Initialize Arc1 and copy its data into Arc2 Arc1.Initialize 30, 40, 50, 60, 45, 315 Arc1.CopyTo Arc2 'Overlay Arc2 on the viewer's image CWIMAQViewer1.Image.Overlays(1).DrawArc Arc2, cwimaqOverlayModeFrame End Sub