DrawArrow Method
Syntax
CWMachineVision.DrawArrow Overlay, Line [, Color]
Return Type
On success, this method returns 0. On failure, this function returns a negative number.
Purpose
Draws an arrow on the input overlay. The arrow is centered at the start point of the line and is directed away from the end point.
Remarks
This function is used by CWMachineVision.DrawLineWithArrows. It is exposed as a convenience method.
Parameters
Overlay As CWIMAQOverlay
The overlay onto which to draw the arrow.
Line As CWIMAQLine
Specifies the position and orientation of the arrow.
Color As Variant
[Optional] The color of the overlay. If not supplied, the DefaultColor property of the CWIMAQOverlay object is used.
Example
'Get the selected line from the viewer Dim Line As New CWIMAQLine CWMachineVision1.GetSelectedLineFromViewer CWIMAQViewer1, Line 'Draw an arrow at the line's starting point CWMachineVision1.DrawArrow CWIMAQViewer1.Image.Overlays(1), Line