C# Class ScreenToGif.FileWriters.AviWriter

Wrapper for the Win32 AVIFile library.
Inheritance: IDisposable
Mostrar archivo Open project: dbremner/ScreenToGif Class Usage Examples

Public Methods

Method Description
AddFrame ( Bitmap frame ) : void

Adds a Bitmap to the end of the AviFile video sequence.

AddFrame ( System.Windows.Media.Imaging.BitmapSource source ) : void

Adds a BitmapSource to the end of the AviFile video sequence. Not working...

AviWriter ( string path, int frameRate, int width, int height, uint quality = 10000 ) : System

Initialize the AviFile.

Dispose ( ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up the AviFile.

Private Methods

Method Description
AVIFileCreateStream ( IntPtr pfile, IntPtr &ppavi, AVISTREAMINFOW &psi ) : int
AVIFileExit ( ) : void
AVIFileInit ( ) : void
AVIFileOpenW ( IntPtr &ppfile, [ szFile, int uMode, int pclsidHandler ) : int
AVIFileRelease ( IntPtr pfile ) : int
AVIMakeCompressedStream ( IntPtr &ppsCompressed, IntPtr ppsSource, AVICOMPRESSOPTIONS &lpOptions, int pclsidHandler ) : int
AVIStreamRelease ( IntPtr pavi ) : int
AVIStreamSetFormat ( IntPtr pavi, Int32 lPos, BITMAPINFOHEADER &lpFormat, Int32 cbFormat ) : int
AVIStreamWrite ( IntPtr pavi, Int32 lStart, Int32 lSamples, IntPtr lpBuffer, Int32 cbBuffer, Int32 dwFlags, IntPtr plSampWritten, IntPtr plBytesWritten ) : int
GetFourCc ( string fcc ) : uint

Method Details

AddFrame() public method

Adds a Bitmap to the end of the AviFile video sequence.
public AddFrame ( Bitmap frame ) : void
frame System.Drawing.Bitmap The frame to be added.
return void

AddFrame() public method

Adds a BitmapSource to the end of the AviFile video sequence. Not working...
public AddFrame ( System.Windows.Media.Imaging.BitmapSource source ) : void
source System.Windows.Media.Imaging.BitmapSource The BitmapFrame to be added.
return void

AviWriter() public method

Initialize the AviFile.
public AviWriter ( string path, int frameRate, int width, int height, uint quality = 10000 ) : System
path string The path to the output file.
frameRate int The frame rate for the video.
width int The width of the video.
height int The height of the video.
quality uint Video quality 0 to 10000.
return System

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

Clean up the AviFile.
protected Dispose ( bool disposing ) : void
disposing bool Whether this is being called from Dispose or from the finalizer.
return void