|
Add Overlay PNG Image on video at specific time. It can display PNG image with perfect transparent background color.
Public Function OverlayAddPNGmage( _ ByVal strImage As String, _ ByVal iXPos As Integer, _ ByVal iYPos As Integer, _ ByVal iStartTime As Double, _ ByVal iEndTime As Double, _ ByVal bFade As Bool )
|
Parameter
strImage the path of PNG image file
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.
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.OverlayAddPNGImage "c:\test.png", 0, 0, 10,20, true VideoEdit1.Preview
|
|
|