Viscom Software Screen2Video ActiveX Control

TextSetStyle Method

Description:   

Change text style at specific index.

Usage:   

Screen2Video1.TextSetStyle 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 text style. (Data Type: Integer)
0 - normal
1 - outline text
2 - filled outline text
3 - hash brush
4 - texture brush

 

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

End Sub