VideoEdit Gold ActiveX Control

AddPicInPicEffect

Description

Add Picture In Picture effect on specific video track.

Syntax

Public Function AddPicInPicEffect ( _
   ByVal iVideoTrack as Integer, _
   ByVal iStartTime as double, _
   ByVal iStopTime as double, _
   ByVal iOffsetX as long,_
   ByVal iOffsetY as long,_
   ByVal iWidth as long,_
   ByVal iHeight as long
) As Boolean

 

Parameter

iVideoTrack
    the index of video track. The first video track is 0.

iStartTime
    the start time of effect

iStopTime
    the end time of effect

iOffsetX
    The x-coordinate of the subrectangle on the source, in pixels

iOffsetY
    The y-coordinate of the subrectangle on the source, in pixels

iWidth
    The Width of the target rectangle, in pixels.

iHeight
    The Height of the target rectangle, in pixels.

Return Value

Return true - successful
Return false - Failed

 

Example

Visual Basic Syntax

VideoEdit1.OutputFileWidth = 720
VideoEdit1.OutputFileHeight = 480

VideoEdit1.VideoSampleSize = 24
VideoEdit1.InitControl

VideoEdit1.MultiTrackAddFirstVideo 0, "c:\test1.mpg", 0, 60, 0, 255
VideoEdit1.MultiTrackAddFirstAudio 0, "c:\test1.mpg", 0, 60
VideoEdit1.MultiTrackAddNextVideo 0, "c:\test2.mpg", 0, 60, 0, 255
VideoEdit1.MultiTrackAddNextAudio 0, "c:\test2.mpg", 0, 60

VideoEdit1.MultiTrackAddFirstVideo 1, "c:\test3.mpg", 0, 60, 0, 255
VideoEdit1.MultiTrackAddFirstAudio 1, "c:\test3.mpg", 0, 60
VideoEdit1.MultiTrackAddNextVideo 1, "c:\test4.mpg", 0, 60, 0, 255
VideoEdit1.MultiTrackAddNextAudio 1, "c:\test4.mpg", 0, 60
VideoEdit1.AddPicInPicEffect 1, 0, 9999, 0, 0, 360, 240

VideoEdit1.Preview