Viscom Software Screen2Video ActiveX Control

DateSetFontStyle Method

Description:   

Set the font style (regular, bold, italic, bolditalic, underline) of date time.

Usage:   

Screen2Video1.DateSetFontStyle Parameter1

Return Value:

No Return value.

Parameter:

Parameter1. - Specifies the font style. (Data Type:Integer)
0 - regular
1 - bold
2 - italic
3 - bolditalic
4 - underline
 

Example:   

This Visual Basic example start the screen capture"

Private Sub cmdCapture_Click()     

        Screen2Video1.OutputType=0
        Screen2Video1.UseOverlay = true
        Screen2Video1.UseHWAcceleration=True
        Screen2Video1.UseAudioCompressor=False
        Screen2Video1.UseVideoCompressor=False
        Screen2Video1.FileName="c:\test.avi"
        Screen2Video1.Start
        Screen2Video1.DateSetFontStyle 0
        Screen2Video1.DateSetFontName "Arial"
        Screen2Video1.DateSetFontSize 30
        Screen2Video1.DateSetColor RGB(255,0,0)
        Screen2Video1.DrawDateTime 100, 100, 7

End Sub