/// <summary>
/// Create a video writer using the specific information
/// </summary>
/// <param name="fileName">The name of the video file to be written to </param>
/// <param name="compressionCode">compression code</param>
/// <param name="fps">frame rate per second</param>
/// <param name="width">the width of the frame</param>
/// <param name="height">the height of the frame</param>
/// <param name="isColor">true if this is a color video, false otherwise</param>
public VideoWriter(String fileName, int compressionCode, int fps, int width, int height, bool isColor)
{
_ptr = CvInvoke.cvCreateVideoWriter(fileName, compressionCode, fps, new System.Drawing.Size(width, height), isColor);
if (_ptr == IntPtr.Zero)
{
throw new NullReferenceException("Unable to create VideoWriter. Make sure you have the specific codec installed");
}
}