AVI files writing using Video for Windows interface.
Namespace:
AForge.Video.VFWAssembly: AForge.Video.VFW (in AForge.Video.VFW.dll) Version: 2.2.3.0 (2.2.3.0)
Syntax
| C# |
|---|
public class AVIWriter : IDisposable |
Remarks
The class allows to write AVI files using Video for Windows API.
Sample usage:
// instantiate AVI writer, use WMV3 codec AVIWriter writer = new AVIWriter( "wmv3" ); // create new AVI file and open it writer.Open( "test.avi", 320, 240 ); // create frame image Bitmap image = new Bitmap( 320, 240 ); for ( int i = 0; i < 240; i++ ) { // update image image.SetPixel( i, i, Color.Red ); // add the image as a new frame of video file writer.AddFrame( image ); } writer.Close( );