Method | Description | |
---|---|---|
AVIWriter ( ) : System |
Initializes a new instance of the AVIWriter class. Initializes Video for Windows library. |
|
AVIWriter ( string codec ) : System |
Initializes a new instance of the AVIWriter class. Initializes Video for Windows library. |
|
AddFrame ( |
Add new frame to the AVI file. The method adds new video frame to an opened video file. The width and heights of the frame should be the same as it was specified in Open method (see Width and Height properties). |
|
Close ( ) : void |
Close video file.
|
|
Dispose ( ) : void |
Dispose the object. Frees unmanaged resources used by the object. The object becomes unusable after that. |
|
Open ( string fileName, int width, int height ) : void |
Create new AVI file and open it for writing. The method opens (creates) a video files, configure video codec and prepares the stream for saving video frames with a help of AddFrame method. |
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Dispose the object.
|
public AVIWriter ( string codec ) : System | ||
codec | string | Codec to use for compression. |
return | System |
public AddFrame ( |
||
frameImage | New frame image. | |
return | void |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | Indicates if disposing was initiated manually. |
return | void |
public Open ( string fileName, int width, int height ) : void | ||
fileName | string | AVI file name to create. |
width | int | Video width. |
height | int | Video height. |
return | void |