OverlayFont
Top  Previous  Next

Description

Returns or sets the font for OverlayText.


Syntax


[VB]
objActiveUSB.OverlayFont [= Font]


[C/C++]
HRESULT get_OverlayFont(IFontDisp* *pFont);
HRESULT put_OverlayFont(IFontDisp* Font);



Data Type
[VB]

StdFont


Parameters
[C/C++]

pFont [out,retval]  
Pointer to the IFontDisp interface object corresponding to the current overlay font  
Font [in]  
IFontDisp interface object corresponding to the overlay font to be set  

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
ActiveUSB1.OverlayFont = Font
ActiveUSB1.OverlayText 10, 100, "ActiveUSB rules!"
ActiveUSB1.OverlayColor = RGB(255, 0, 0)
ActiveUSB1.Overlay = True

Remarks


Also see OverlayColor, OverlayText.