AddVideo
|
AddVideo Method |
Description
Add the video/image to timeline. This method support video/image format include: MOV, MP4, 3GP, DIVX, AVI, WMV, MPEG1,Dat, MPEG2, VOB, FLV, F4V, AVCHD, bmp, jpg, gif, tga.
Syntax
Public Function AddVideo ( _ |
Parameter
strFile
the file path of video file
iVideoStart
the start time of video time you want extract
iVideoStop
the end time of video time you want extract
iStretchMode
the 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. |
Return Value
Return true - successful
Return false - Failed
Example
Visual Basic Syntax |