Recording-video-with-c-
Recording-video-with-c- copied to clipboard
Error: Bitmap size must be the same as video size
I'm getting this error "Bitmap size must be the same as video size, which was specified on opening video file" when I try to start recording.
Hi syszone - not sure you still need the answer to this, but it may be useful for others that come across this issue:
You can fix this by changing this line:
_writer.Open(dialog.FileName, (int)Math.Round(Image.Width, 0), (int)Math.Round(Image.Height, 0));
to this:
_writer.Open(dialog.FileName, Image.PixelWidth, Image.PixelHeight);
@mfranchitti: thanks, it works