|
Add Overlay Image on video at specific time.
Public Function OverlayAddImage( _ ByVal strImage As String, _ ByVal iXPos As Integer, _ ByVal iYPos As Integer, _ ByVal iTranR As Integer, _ ByVal iTranG As Integer, _ ByVal iTranB As Integer, _ ByVal iStartTime As Double, _ ByVal iEndTime As Double, _ ByVal bFade As Bool )
|
Parameter
strImage the path of image file. Support bmp, jpg, gif, png, tif file format.
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.
iTranR The color value with red component of transparent color (0-255).
iTranG The color value with green component of transparent color (0-255).
iTranB The color value with blue component of transparent color (0-255).
iStartTime The image's start time in seconds.
iStartTime The image's end time in seconds.
bFade enable or disable fade effect.
Return Value
Return true if success, otherwise false.
Example
|
Visual Basic Syntax VideoEdit1.UseOverlay=true VideoEdit1.InitControl VideoEdit1.AddVideo "c:\test3.mpg" , 0,10 VideoEdit1.AddAudio "c:\test3.mpg" , 0,10 VideoEdit1.OverlayAddImage "c:\test.bmp", 0, 0, 0, 0,0,10,20, true VideoEdit1.Preview
|
|
|