This COM event is fired when ImageWarp script terminates or enters the Pause state.
Syntax
[VB]
Private Sub objImageWarp_Suspended( ByVal ID As Long ) [C/C++]
HRESULT Fire_Suspended( long ID );
Data Types [VB]
ID: Long
Parameters [C/C++]
ID [in]
Thread ID of ImageWarp script from which the event was fired.
Return Values
S_OK
Success
E_FAIL
Failure.
Example
This VB code instructs ImageWarp to run a real-time acquisition and processing cycle and uses the Suspend event to display a pixel value in the processed image when the script pauses. The execution of the script is being resumed by calling the Run method.
Private Sub Form_Load()
Set IW = New ImageWarp
IW.Show
script = "do\ngrabim(1)\nsobel(1,2)\nPause(CUR_THREAD)\nloop"
IW.Call (script)
End Sub
Private Sub IW_Suspend(ByVal id As Long)
Label1.Caption=IW.GetPixel(2,32,64)
IW.Run(id)
End Sub