MultiTrackAddFirstVideo
|
MultiTrackAddFirstVideo |
Description
Add first video file to specific track. Use this function, you may create video mixing and picture in picture effect.
Syntax
Public Function MultiTrackAddFirstVideo ( _ |
Parameter
iVideoTrack
the index of video track. The first audio video is 0.
strFile
the path of media file. It support video/image file.
iVideoStart
the start time of media file.
iVideoStop
the stop time of media file.
iStretchMode
the value of stretch mode
Mode |
Description |
0 |
The image is stretched to fit the target frame size in both dimensions, without preserving the aspect ratio. |
1 |
The image is not resized. If the image is smaller than the target frame, the surrounding area is black. If the image is larger than the target frame, the image is cropped. |
2 |
The image is resized to fit the target frame along one dimension, while preserving the aspect ratio. If the ratio of width to height in the image does not match the ratio in the target frame, it creates a letterbox. |
3 |
The image is resized to fill the entire target frame while preserving the aspect ratio. Rather than create a letterbox, this mode crops the image, either along the sides or across the top and bottom. |
iAlphaValue
the value of alpha value, from 0-255. 255 = fully visible. This value only valid when you call AddVideoMixingEffect()
Return Value
Return true - successful
Return false - Failed
Example
Visual Basic Syntax |