Answer the question
In order to leave comments, you need to log in
What is wrong with c#?
private void Form1_Load(object sender, EventArgs e)
{
AVIWriter writer;
writer = new AVIWriter();
writer.FrameRate = 1;
writer.Quality = 1;
writer.Open(@"C:\Users\User2\Videos\test.avi", 320, 240);
System.Drawing.Bitmap frame = new System.Drawing.Bitmap(320, 240);
for (int i = 0; i < 320; i++)
{
writer.AddFrame(frame);
}
}
An unhandled exception of type 'System.ArgumentException' in AForge.Video.VFW.dll
Additional information: Bitmap size must be of the same as video size, which was specified on opening video file.
Answer the question
In order to leave comments, you need to log in
The mistake is trying to start programming without a basic knowledge of English. If you plan to connect your life with development, learn English. Otherwise, order work from a professional. A machine translator will help you learn English , to which you can feed hitherto incomprehensible error messages.
Of course, you do not need to read the text of the error, in the error it is written in Russian and white that the size of the picture must match the size of the frame in the video.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question