VideoEdit Gold ActiveX Control

ExportWaveformToImage

 

Export the waveform from video/audio file and save to image file.

Public Function ExportWaveformToImage( _
  ByVal strMediaFile As String ,_
  ByVal strOutputImage As String ,_
  ByVal iAudioStart As double ,_
  ByVal iAudioStop As double ,_
  ByVal iScale As double ,_
  ByVal iWaveFormHeight As integer ,_
  ByVal clrWaveForm As Color ,_
  ByVal clrBackColor As Color
) as bool

 

Parameter
strMediaFile
Specifies the name of video/audio file.

strOutputImage
Specifies the output image file. According the file extension, it support output JPEG, BMP, TIFF, PNG, TIFF, GIF file.

iAudioStart
Specifies the media start time, in second unit.
 
iAudioStop
Specifies the media stop time, in second unit.

iScale
Specifies the waveform scale. You may set the scale smaller than 1.0 if duration of waveform is long.

iWaveFormHeight
Specifies the height of waveform.

clrWaveForm
Specifies the color of waveform.

clrBackColor
Specifies the background color of waveform.

Return Value

Return true if successful, otherwise return false


Example

   

Visual Basic Syntax
result = VideoEdit1.ExportWaveformToImage("c:\yourvideo.mpg", "c:\temp\outputwaveform.jpg", 0, 30, 1.0, 200, RGB(0,255,0), RGB(0,0,0)