Movie Player ActiveX Control

DrawImageFromByteArray

 

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

Public Function DrawImageFromByteArray( _
  ByVal iXpos As Float , _
  ByVal iYPos As Float, _
  ByVal iStyle As Integer, _
  ByVal pBuffer As Byte, _
  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. 

pBuffer
An Array which contains image file data. 

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
Dim nFileHandle As Integer
Dim arBuffer() As Byte
Dim nImageID As Long

nFileHandle = FreeFile
Open "c:\test1.tif" For Binary As #nFileHandle
ReDim arBuffer((LOF(nFileHandle)))
Get #nFileHandle, , arBuffer
Close #nFileHandle

MoviePlayer1.FileName="c:\test.mpg"
MoviePlayer1.Play
MoviePlayer1.DrawImage 0,0.5,1,arBuffer, RGB(255,255,255),1,500
Erase arBuffer