VideoEdit Gold ActiveX Control

SubTitleSetTextColor Method

Description

Set the text color of subtitle text.

Syntax

Public Function SubTitleSetTextColor(
   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 text color (0-255).

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

iBlue
    The color value with blue component of text 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.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