OverlayText
Top  Previous  Next

Description

Draws a string of text in the overlay.


Syntax


[VB]
objActiveGeni.OverlayText X, Y, Text


[C/C++]
HRESULT OverlayText( short X, short Y, bstr Text );


Data Types
[VB]

X, Y : Integer
Text: String

Parameters
[C/C++]

X [in], Y [in]  
Coordinates of the text relative to the image origin.  
Text [in]  
The string containing the text to be drawn.  
 

Return Values


S_OK  
Success  
E_FAIL  
Failure.  

Example


The following VB example overlays a string of text on the live video:

Dim
 Font 
As New
 StdFont
Font.Name = "Arial"
Font.Size = 18
Font.Bold = 
True

ActiveGeni1.OverlayFont = Font
ActiveGeni1.OverlayText 10, 100, "ActiveGeni rules!"
ActiveGeni1.OverlayColor = RGB(255, 0, 0)
ActiveGeni1.Overlay = 
True


Remarks


To select the font for drawing text strings, use OverlayFont. To draw multiple strings, call this method several times. Also see OverlayColor, OverlayClear.