VideoEdit Gold ActiveX Control

SubTitleSetBg Method

Description

Enable/Disable show the background color of subtitle text.

Syntax

Public Function SubTitleSetBg(
   ByVal bEnable as Bool
}

Parameter
bEnable
    True - Show the background color of subtitle text, False - Invisible the background color of subtitle text.

No Return Value
 

Example

Visual Basic Syntax
VideoEdit1.UseOverlay = True
VideoEdit1.OverlayType = 1
VideoEdit1.SubTitleLoadFile "c:\mytest.srt"
VideoEdit1.SubTitleSetBg True
VideoEdit1.SubTitleSetBgColor 0, 0, 255, 255
VideoEdit1.SubTitleSetTextColor 255, 255, 255, 255
VideoEdit1.SubTitleSetFont "Arial", 20, 100, False, False, 0
VideoEdit1.SubTitleSetShadow True
VideoEdit1.SubTitleSetShadowColor 0, 0, 0, 255
VideoEdit1.SubTitleSetTopPos -1
VideoEdit1.InitControl
VideoEdit1.AddVideo "c:\hello.mpg" , 0,10,0
VideoEdit1.AddAudio "c:\hello.mpg" , 0,10
VideoEdit1.Preview