VideoEdit Gold ActiveX Control

GetPosterFrame Method

Description

Get the poster frame, it will skip the black frame with specific minimum Brightness.

 

Syntax

Public Function GetPosterFrame ( _
   ByVal strVideoFile as string, _
   ByVal iStart as double, _
   ByVal iMinBrightness as long, _
   ByVal strOutputImage as string
) As Boolean

 

Parameters

strVideoFile
    the path of video file

iStart
   capture poster frame in seconds

iMinBrightness
   the value of minimum brightness. default is 90. If color value is less than iMinBrightness then it is considered black. You should set this value between 10 to 100.

strOutputImage
     It support output bmp, jpg, png, tif, gif.  If the strOutputImage have .bmp extension . It will output bmp file.

Return Value

Return true - successful
Return false - Failed
 

Example

[Visual Basic Syntax]
VideoEdit1.GetPosterFrame "c:\hello.mpg",0, 90, "c:\yourfolder\output.jpg"