VideoEdit Gold ActiveX Control

OverlayAddText

 

Add Overlay Text on video at specific time.
 

Public Function OverlayAddText( _
   ByVal strText As String, _
   ByVal iXPos As Integer, _
   ByVal iYPos As Integer, _
   ByVal iStartTime As Double, _
   ByVal iEndTime As Double, _
   ByVal bFade As Bool
) 

 

Parameter

strText
   the string of text.  It support multi-line text. Add Carriage returns and line feeds it will break the line.

iXPos
   Specifies the logical x-coordinate of the starting point of the text.

iYPos
   Specifies the logical y-coordinate of the starting point of the text.

iStartTime
   The text's start time in seconds.

iStartTime
   The text's end time in seconds.

bFade
   enable or disable fade effect.

Return Value

Return true if success, otherwise false.


Example

   

Visual Basic Syntax
VideoEdit1.UseOverlay=true
VideoEdit1.InitControl
VideoEdit1.AddVideo "c:\test3.mpg" , 0,10    
VideoEdit1.AddAudio "c:\test3.mpg" , 0,10    
VideoEdit1.OverlaySetTextBgColor 255,0,0,127
VideoEdit1.OverlaySetTextColor 255,255,255,255
VideoEdit1.OverlaySetSpeed 3
VideoEdit1.OverlaySetTextScrollDir 0
VideoEdit1.OverlaySetTextShadow true
VideoEdit1.OverlaySetState 0
VideoEdit1.OverlayAddText "This is text 1 1234567890",  0, 0,0,10, true
VideoEdit1.OverlayAddText "This is text 2 1234567890",  0, 0,11,20, true
VideoEdit1.Preview