Viscom Software VideoCap ActiveX Control

DrawText Method

Description:   

Draw the single or multline text on a video stream. Make sure you set UseOverlay property to true.

Usage:   

VideoCap1.DrawText Parameter1,Parameter2,Parameter3,,Parameter4

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)


Return Value:

No Return value.

Example:   

This Visual Basic example draw the text in preview window and file.

VideoCap1.Start
VideoCap1.DrawText  0, 0, 10, "text1" +chr(13)+chr(10) +"text1line2"
VideoCap1.DrawText  1, 0, 30, "text2" +chr(13)+chr(10) +"text2line2"