VideoEdit ActiveX Control

GetFrameBySize2HBitmap Method

Description

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

 

Syntax

Public Function GetFrameBySize2HBitmap ( _
   ByVal strInputFile as string, _
   ByVal iSecond as double, _
   ByVal iWidth as long, _
   ByVal iHeight as long
) As Long

 

Parameters

strInputFile
   the path of video file

iSecond
    capture time in seconds

iWidth
    the width of  picture object

iHeight
    the height of  picture object
 

Return Value

Return Window HBITMAP handle

 

Example

[Visual Basic Syntax]
hbitmap = VideoEdit1.GetFrameBySize2HBitmap "c:\hello.mpg",0, 320,240