DrawRectangle Method
Syntax
CWIMAQOverlay.DrawRectangle Rectangle, DrawMode [, Color]
Purpose
Draws a rectangle to the overlay.
Parameters
Rectangle As CWIMAQRectangle
The rectangle to draw.
DrawMode As CWIMAQOverlayModes
Defines how to draw the points.
Color As Variant
[Optional] The color of the overlay. If not supplied, the DefaultColor value is used.
Example
Private Sub Run_Click() 'Create a rectangle Dim Rectangle As New CWIMAQRectangle Rectangle.Initialize 3, 23, 19, 81 'Overlay the rectangle CWIMAQViewer1.Image.Overlays(1).DrawRectangle Rectangle, cwimaqOverlayModeHighlight End Sub