VideoEdit Gold ActiveX Control

AddKeyTransparentEffect

Description

Add chroma key effect on specific video track.

Syntax

Public Function AddKeyTransparentEffect ( _
   ByVal iVideoTrack as Integer, _
   ByVal iStartTime as double, _
   ByVal iStopTime as double, _
   ByVal clrTranColor as Color
) 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

clrTranColor
    the transparent color

Return Value

Return true - successful
Return false - Failed

 

Example

Visual Basic Syntax

VideoEdit1.VideoSampleSize = 24
VideoEdit1.InitControl
VideoEdit1.MultiTrackAddFirstVideo 0, "c:\test.mpg", 0, 30, 0, 255
VideoEdit1.MultiTrackAddFirstVideo 1, "c:\frame.bmp", 0, 30, 0, 255
VideoEdit1.AddKeyTransparentEffect 1, 0, 30, RGB(0, 0, 0)
VideoEdit1.Preview