Movie Player ActiveX Control

DrawText

 

Draw the overlay text on video. You can define scrolling type, font size, font name, color,etc

Public Function DrawText( _
  ByVal iXpos As Float , _
  ByVal iYPos As Float, _
  ByVal iStyle As Integer, _
  ByVal strText As String, _
  ByVal bFontBold As Boolean, _
  ByVal bFontItalic As Boolean, _
  ByVal bFontUnderline As Boolean, _
  ByVal clrTextColor As OLE_COLOR, _
  ByVal clrBackgroundColor As OLE_COLOR, _
  ByVal clrTransparentColor As OLE_COLOR, _
  ByVal iAlphaValue As Float, _
  ByVal iSpeed As Float, _
  ByVal iFormat As Integer
) 

 

Parameter
iXpos
Specifies the logical x-coordinate of the starting point of the text, must be a value from 0.0 to 1.0

iYpos
Specifies the logical y-coordinate of the starting point of the text, must be a value from 0.0 to 1.0

iStyle
The style of scrolling type -  0 =No Scroll , 1=Scroll Left, 2=Scroll Right. 

strText
The characters to be drawn. Add Carriage returns and line feeds it will break the line. 

bFontBold
Enable or Disable the font bold.   

bFontItalic
Enable or Disable the font Italic.   

bFontUnderline
Enable or Disable the font underline.   

clrTextColor
The font color.

clrTextColor
The foreground color of the text.

clrBackgroundColor
The background color of the text.

iAlphaValue
Specifies the alpha blending value; must be a value from 0.0 to 1.0

iSpeed
The scrolling speed in milliseconds. 

iFormat
0 - Aligns text to the left.
1 - Centers text horizontally.
2 - Aligns text to the right.


Return Value

No return value


Example

   

Visual Basic Syntax
MoviePlayer1.FileName="c:\test.mpg"
MoviePlayer1.Play
MoviePlayer1.DrawText 0,0.5,1,"Testing",20,"Arial", FALSE,FALSE,FALSE, RGB(255,0,0),RGB(255,255,255), RGB(255,255,255),1 ,500,0