FrameAcquiredX
Top  Previous  Next

Description

This event is fired each time a frame has been acquired, decoded and processed. Unlike FrameAcquired event it is fired from a processing thread providing a higher efficiency. May not work in certain containers.

Syntax


[VB]
Private Sub objActiveGeni_FrameAcquiredX()


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

Parameters
 
None  

Return Values


S_OK  
Success  
E_FAIL  
Failure.  


Example


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

Private
Sub
AxActiveGeni1_FrameAcquired(ByVal
sender As
System.Object, ByVal e As AxActiveGeniLib._IActiveGeniEvents_FrameAcquiredEvent)
Label1.Text = AxActiveGeni1.GetPixel(16, 32)  
End Sub

 

Remarks


This event is provided for applications that can process events fired from a processing thread (VB.NET, C#, C++). For applications created in VB6, VBA, Delphi and Matlab use FrameAcquired event instead.

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