VideoEdit Gold ActiveX Control

GetFrame Method

Description

Capture the frame from video file at specific time and save to bitmap, jpg, png, tif, gif file.

 

Syntax

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

 

Parameters

strInputFile
    the path of video file

iSecond
    capture time in seconds

strImageFile
    the output image file name

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

 

Return Value

Return true - successful
Return false - Failed
 

Example

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