VideoEdit Gold ActiveX Control

OverlaySetTextBgColor

 

Set background color of Overlay Text.
 

Public Function OverlaySetTextBgColor( _
   ByVal iRed As Integer, _
   ByVal iGreen As Integer, _
   ByVal iBlue As Integer, _
   ByVal iAlpha As Integer
 ) 

 

Parameter

iRed
   The color value with red component of background color (0-255).

iGreen
   The color value with green component of background color (0-255).

iBlue
   The color value with blue component of background color (0-255).

iAlpha
   The alpha value of background color (0-255).  A pixel with an alpha value of zero is completely transparent. A pixel with an alpha value of 255 is opaque.

No Return Value


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.OverlaySetFont "Arial", 40, 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