Click or drag to resize
Accord.NET (logo)

AVIWriterAddFrame Method

Add new frame to the AVI file.

Namespace:  Accord.Video.VFW
Assembly:  Accord.Video.VFW (in Accord.Video.VFW.dll) Version: 3.8.0
Syntax
public void AddFrame(
	Bitmap frameImage
)
Request Example View Source

Parameters

frameImage
Type: System.DrawingBitmap
New frame image.
Exceptions
ExceptionCondition
IOExceptionThrown if no video file was open.
ArgumentExceptionBitmap size must be of the same as video size, which was specified on opening video file.
VideoExceptionA error occurred while writing new video frame. See exception message.
Remarks

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(String, Int32, Int32) method (see Width and Height properties).

See Also