Movie Player ActiveX Control

ShowBitmapByteArrayOnDrawText

 

Show Bitmap from byte array and text in same time. Display the overlay bitmap when draw the text on video.

Public Function ShowBitmapByteArrayOnDrawText( _
  ByVal pBuffer As Byte , _
  ByVal iXPos As Long, _
  ByVal iYPos As Long
) 

 

Parameter

pBuffer
An Array which contains image file data.  

iXpos
Specifies the logical x-coordinate of the starting point of the image.

iYpos
Specifies the logical y-coordinate of the starting point of the image.

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.ShowBitmapOnDrawText arBuffer,0,100
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
Erase arBuffer