Movie Player ActiveX Control

DrawImage

 

Draw the overlay bitmap image on video. You can define scrolling type, transparent color,etc

Public Function DrawImage( _
  ByVal iXpos As Float , _
  ByVal iYPos As Float, _
  ByVal iStyle As Integer, _
  ByVal strImageFile As String, _
  ByVal clrTransparentColor As OLE_COLOR, _
  ByVal iAlphaValue As Float, _
  ByVal iSpeed As Float
) 

 

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. 

strImageFile
The bitmap image to be drawn.  

clrTransparentColor
The Transparent color of the Image.

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

iSpeed
The scrolling speed in milliseconds. 

Return Value

No return value


Example

   

Visual Basic Syntax
MoviePlayer1.FileName="c:\test.mpg"
MoviePlayer1.Play
MoviePlayer1.DrawImage 0,0.5,1,"c:\test.bmp", RGB(255,255,255),1,500