VideoEdit Gold ActiveX Control

GetFrame2HBitmap Method

Description

Capture the frame from video file in specific duration and return HBitmap handle. After called , you need release HBitmap handle.

 

Syntax

Public Function GetFrame2HBitmap ( _
   ByVal strInputFile as string, _
   ByVal iSecond as double 
) As Long

 

Parameters

strInputFile
   the path of video file

iSecond
     capture time in seconds

 

Return Value

Return Window HBITMAP handle
 

Example

[Visual Basic Syntax]
bitmaphandle= VideoEdit1.GetFrame2HBitmap "c:\hello.mpg",0