VideoEdit Gold ActiveX Control

GetPosterFrameBySize Method

Description

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

 

Syntax

Public Function GetPosterFrameBySize ( _
   ByVal strVideoFile as string, _
   ByVal iStart as double, _
   ByVal iMinBrightness as long, _
   ByVal strOutputImage as string, _
   ByVal iImageWidth as integer, _
   ByVal iImageHeight as integer
) 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.

iImageWidth
   the width of output image.

iImageHeight
  the height of output image.


Return Value

Return true - successful
Return false - Failed
 

Example

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