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 objActiveGige_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:
PublicClassForm1
DelegateSubUpdateFPSLabelCallback([text] AsString)
PrivateSub AxActiveGigE1_FrameAcquiredX(sender AsObject, e As System.EventArgs) Handles AxActiveGigE1.FrameAcquiredX
UpdateLabel(Format(AxActiveGigE1.GetPixel(16, 32)))
EndSub
PrivateSub UpdateLabel(ByVal [text] AsString)
IfMe.Label1.InvokeRequired Then Dim d AsNewUpdateLabelCallback(AddressOf UpdateLabel)
Me.Invoke(d, NewObject() {[text]})
Else Me.Label1.Text = [text]
EndIf EndSub
EndClass
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: