You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I really apricate to the developer of the useful software package AForge.NET.
I am using AForge.NET 2.2.5 (Full Zip Archive) with Visual Studio 2019 Pro.
When I select Any CPU mode, the following sample code works fine.
However, when I select x64 mode, the aviWriter.AddFrame() throws System.OverflowException: 'Arithmetic operation resulted in an overflow.'
Is there any way to avoid the error?
AVIWriter aviWriter = new AVIWriter();
Bitmap bitmap = new Bitmap(640, 360);
Graphics g = Graphics.FromImage(bitmap);
aviWriter.FrameRate = 30;
aviWriter.Open("test.avi", 640, 360);
for (int i = 0; i < 300; i++)
{
g.Clear(Color.Black);
g.DrawString("" + i.ToString("d2"), new Font("MS UI Gothic", 64), Brushes.BlanchedAlmond, 10f, 10f);
aviWriter.AddFrame(bitmap);
}
aviWriter.Close();
The text was updated successfully, but these errors were encountered:
I really apricate to the developer of the useful software package AForge.NET.
I am using AForge.NET 2.2.5 (Full Zip Archive) with Visual Studio 2019 Pro.
When I select Any CPU mode, the following sample code works fine.
However, when I select x64 mode, the aviWriter.AddFrame() throws System.OverflowException: 'Arithmetic operation resulted in an overflow.'
Is there any way to avoid the error?
The text was updated successfully, but these errors were encountered: