FrameAcquired
Top  Previous  Next

Description

This event is fired each time a frame has been acquired, decoded and processed.


Syntax


[VB]
Private Sub objActiveUSB_FrameAcquired()


[C/C++]
HRESULT Fire_FrameAcquired();


Parameters
[C/C++]

None  


Return Values


S_OK  
Success  
E_FAIL  
Failure.  


Example


This VB example uses the FrameAcquired event to access and display a pixel value in real time:

Private Sub ActiveUSB1_FrameAcquired()  
Label1.Caption = ActiveUSB1.GetPixel(16, 32)  
End Sub  
 

Remarks


One of the following conditions must be met, before the FrameAcquired event will be fired:
The Acquire property has been set to TRUE  
The Grab method has been called.  

The FrameAcquired event is fired from the interface thread to provide compatibility with all types of ActiveX containers. For applications created in VB.NET, C# and C++ it is recommended to use the FrameAcquiredX event.