C# Class ScreenToGif.FileWriters.AviWriter

Wrapper for the Win32 AVIFile library.
Inheritance: IDisposable
Afficher le fichier Open project: dbremner/ScreenToGif Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up the AviFile.

Private Methods

Méthode 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 méthode

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.
Résultat void

AddFrame() public méthode

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.
Résultat void

AviWriter() public méthode

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.
Résultat System

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

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