VideoEdit Gold ActiveX Control

GetFrameBySize Method

Description

Capture the frame from video file in specific duration and save to specific size of image file.

 

Syntax

Public Function GetFrameBySize ( _
   ByVal strInputFile as string, _
   ByVal iSecond as double, _
   ByVal strImageFile as string, _
   ByVal iWidth as integer, _
   ByVal iHeight as integer, _
   ByVal iOutputFileType as integer
) As Boolean

 

Parameters

strInputFile
    the path of video file

iSecond
    capture time in seconds

strImageFile
    the output image file name

iWidth
    the width of  bitmap file

iHeight
    the height of  bitmap file

iOutputFileType
0  -  bitmap
1  - JPEG
2  - PNG
3  - TIF
4  - GIF

Return Value

Return true - successful
Return false - Failed
 

Example

[Visual Basic Syntax]
VideoEdit1.GetFrameBySize "c:\hello.mpg",0,"c:\newbitmap.bmp",100,120,0