Description
Clears graphics and text from the overlay.
Syntax
[VB]
objActiveGige.OverlayClear
[C/C++]
HRESULT OverlayClear();
Parameters
Return Values
Example
The following VB example moves a red rectangle over the live image by repeatedly erasing and drawing it:
Private Sub Form_Load()
x = 0
ActiveGige1.Acquire = True
ActiveGige1.OverlayColor = RGB(255, 0, 0)
ActiveGige1.Overlay = True
End Sub
Dim x As Integer
Private Sub ActiveGige1_FrameAcquired()
ActiveGige1.OverlayClear
ActiveGige1.OverlayRectangle x, 10, x + 50, 80, 3
x = x + 2
If x = ActiveGige1.SizeX Then
x = 0
End If
End Sub
Remarks
To create animation effects, use this method in combination with OverlayColor, OverlayPixel, OverlayLine, OverlayRectangle, OverlayEllipse, OverlayText.