OverlayPixel
Top  Previous  Next

Description

Draws a pixel in the overlay.


Syntax


[VB]
objActiveGeni.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:

ActiveGeni1.Acquire = 
True

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


Remarks


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