在使用Accord.Video.VFW.dll将位图转换为AVi时,我使用以下代码:
AVIWriter writer = new AVIWriter();
// create new AVI file and open it
writer.Open( "test.avi", 320, 240 );
// create frame image
Bitmap image = new Bitmap( 320, 240 );
for ( int i = 0; i < 240; i++ )
{
// update image
image.SetPixel( i, i, Color.Red );
// add the image as a new frame of video file
writer.AddFrame( image );
}
writer.Close( );在队列中
writer.AddFrame( image );总是收到错误:
Exception thrown: 'System.OverflowException' in Accord.Video.VFW.dll发布于 2021-03-16 00:01:26
您需要在项目属性的生成菜单中选中“最好是32位”。

https://stackoverflow.com/questions/53696365
复制相似问题