OverlayFont
Top  Previous  Next

Description

Returns or sets the font for OverlayText and DrawAlphaText.


Syntax


[VB]
objActiveDcam.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
ActiveDcam1.OverlayFont = Font
ActiveDcam1.OverlayText 10, 100, "ActiveDcam rules!"
ActiveDcam1.OverlayColor = RGB(255, 0, 0)
ActiveDcam1.Overlay = True

Remarks


Also see OverlayColor, OverlayText, DrawAlphaText.