Viscom Software Screen2Video ActiveX Control

DrawText Method

Description:   

 Draw the texts to video when screen recording.

Usage:   

Screen2Video1.DrawText Parameter1,Parameter2,Parameter3,,Parameter4

Return Value:

No Return value.

Parameter:

Parameter1- the index of text. First index is zero, up to 60 index. You can draw 60 texts in same time. (Data Type: Integer)
Parameter2- the left position of text. (Data Type: Integer)
Parameter3- the top position of text. (Data Type: Integer)
Parameter4- the string of text. Add chr(13)+chr(10) character it will break the line. (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