This COM event is fired each time the sendMessage function is executed in ImageWarp script.
Syntax
[VB]
Private Sub objImageWarp_Message( ByVal ID As Long ) [C/C++]
HRESULT Fire_Message( long ID );
Data Types [VB]
ID: Long
Parameters [C/C++]
ID [in]
User-defined identificator
Return Values
S_OK
Success
E_FAIL
Failure.
Example
This VB code instructs ImageWarp to run a real-time acquisition and processing script and uses the Message event to display a pixel value in the processed image upon completion of the Sobel filter.
Private Sub Form_Load()
Set IW = New ImageWarp
IW.Show
script = "do\ngrabim(1)\nsobel(1,2)\nSendMessage(1)\nloop"
IW.Call (script)
End Sub
Private Sub IW_Message(ByVal id As Long)
Label1.Caption=IW.GetPixel(2,32,64)
End Sub
Remarks
The Message event provides the most efficient way to synchronize ImageWarp with an external COM client. See Using Automation for more details.