Description
Clears graphics and text from the overlay.
Syntax
[VB]
objActiveDcam.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
ActiveDcam1.Acquire = True
ActiveDcam1.OverlayColor = RGB(255, 0, 0)
ActiveDcam1.Overlay = True
End Sub
Dim x As Integer
Private Sub ActiveDcam1_FrameAcquired()
ActiveDcam1.OverlayClear
ActiveDcam1.OverlayRectangle x, 10, x + 50, 80, 3
x = x + 2
If x = ActiveDcam1.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.