AVIWriter Class |
Namespace: Accord.Video.VFW
The AVIWriter type exposes the following members.
Name | Description | |
---|---|---|
AVIWriter |
Initializes a new instance of the AVIWriter class.
| |
AVIWriter(String) |
Initializes a new instance of the AVIWriter class.
|
Name | Description | |
---|---|---|
Codec |
Codec used for video compression.
| |
FrameRate |
Desired playing frame rate.
| |
Height |
Height of video frames.
| |
Position |
Current position in video stream.
| |
Quality |
Compression video quality.
| |
Width |
Width of video frames.
|
Name | Description | |
---|---|---|
AddFrame |
Add new frame to the AVI file.
| |
Close |
Close video file.
| |
Dispose |
Dispose the object.
| |
Dispose(Boolean) |
Dispose the object.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize |
Destroys the instance of the AVIWriter class.
(Overrides ObjectFinalize.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Open |
Create new AVI file and open it for writing.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
HasMethod |
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.) | |
IsEqual |
Compares two objects for equality, performing an elementwise
comparison if the elements are vectors or matrices.
(Defined by Matrix.) | |
To(Type) | Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) | |
ToT | Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) |
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( );