OverlayPixel
Top  Previous  Next

Description

Draws a pixel in the overlay.


Syntax


[VB]
objActiveGige.OverlayPixel X, Y


[C/C++]
HRESULT OverlayPixel( short X, short Y );


Data Types
[VB]

X, Y : Integer

Parameters
[C/C++]

X [in], Y [in]  
Coordinates of the pixel relative to the image origin.  


Return Values


S_OK  
Success  
E_FAIL  
Failure.  

Example


The following VB example overlays four red pixels on the live video:

ActiveGige1.Acquire = 
True

ActiveGige1.OverlayPixel 100,100
ActiveGige1.OverlayPixel 100,200
ActiveGige1.OverlayPixel 200,100
ActiveGige1.OverlayPixel 200,200
ActiveGige1.OverlayColor=RGB(255,0,0)
ActiveGige1.Overlay=  
True


Remarks


To draw custom shapes, call this method multiple times. Also see OverlayColor, OverlayClear.