MouseUpRight
Top  Previous  Next

Description

This event is fired each time the rightmouse button is released inside the control window. Returns the coordinates of a pixel pointed by the cursor.


Syntax


[VB]
Private Sub objActiveGige_MouseUpRight( ByVal X As Integer, ByVal Y As Integer )


[C/C++]
HRESULT Fire_MouseUpRight( SHORT X, SHORT Y );


Data Types
[VB]

X: Integer
Y: Integer

Parameters
[C/C++]

X [in]  
The X-coordinate of the pixel pointed by the cursor.  
Y [in]  
The Y-coordinate of the pixel pointed by the cursor.  
   

Return Values


S_OK  
Success  
E_FAIL  
Failure.  

Example


This VB example uses the MouseUpRight event to display the value of the pixel pointed by the cursor:

Private Sub ActiveGige1_MouseUpRight(ByVal X As IntegerByVal Y As Integer)  
   
   Dim
 Value 
As Integer

      Value = ActiveGige1.GetPixel(X, Y)
MsgBox Value  
End Sub  
 

Remarks


Note that the coordinates returned by this event refer to the image coordinate system, not to the screen coordinates.

Set the Acquire and ScrollBars properties to TRUE in order to display a scrollable live video and get a visual access to all parts of the image.