VideoEdit Gold ActiveX Control

GetFrameBySize2Picture Method

Description

Capture the frame from video file in specific duration and return specific size VB Picture object.

 

Syntax

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

 

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 stdole.Picture
 

Example

[Visual Basic Syntax]
Picture1.Picture = VideoEdit1.GetFrameBySize2Picture "c:\hello.mpg",0, 320,240