Viscom Software Screen2Video ActiveX Control

TextSetFontName Method

Description:   

Change font name of  text at specific index.

Usage:   

Screen2Video1.TextSetFontName Parameter1, Parameter2

Return Value:

No Return value.

Parameter:

Parameter1- the index of text. First index is zero, up to 60 index. You can control 60 texts in same time. (Data Type: Integer)
Parameter2- the font name (Data Type: String)

 

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.TextSetFontStyle 0, 0
        Screen2Video1.TextSetFontName 0, "Arial"
        Screen2Video1.TextSetFontSize 0, 40
        Screen2Video1.TextSetStyle 0, 0
        Screen2Video1.TextSetColor 0, RGB(255,0,0)
        Screen2Video1.DrawText 0,100,100, "this is text 1"

End Sub