为了正常的体验网站,请在浏览器设置里面开启Javascript功能!

输出avi视频

2018-05-01 2页 doc 13KB 14阅读

用户头像

is_421808

暂无简介

举报
输出avi视频输出avi视频 我的系统是.net下开发的,要求实现三维漫游时的录制和输出avi,调用了ISceneExporter3d 接口下的ExportScene方法,三维漫游是在arcglobe下开发的,所以用了强制转换,代码如 下,各位大虾指教下啊 private void ExportSceneAnimation(IScene pScene,string sExportFileName,double nVideoDuration,double nQualityPercent) { try { if(timelength...
输出avi视频
输出avi视频 我的系统是.net下开发的,要求实现三维漫游时的录制和输出avi,调用了ISceneExporter3d 接口下的ExportScene方法,三维漫游是在arcglobe下开发的,所以用了强制转换,代码如 下,各位大虾指教下啊 private void ExportSceneAnimation(IScene pScene,string sExportFileName,double nVideoDuration,double nQualityPercent) { try { if(timelength!=0) { ISceneExporter3d p3DExporter;//initialize a 3D SceneExporter p3DExporter=new AVIExporterClass() ; p3DExporter.ExportFileName=sExportFileName; //set the viewer of the exporter ISceneVideoExporter pExporter; pExporter=p3DExporter as ISceneVideoExporter; pExporter.Viewer=pScene.SceneGraph.ActiveViewer; //set the video duration pExporter.VideoDuration=nVideoDuration; //set the qualoty percentage of video IAVIExporter pAVIExporter; pAVIExporter=p3DExporter as IAVIExporter ; pAVIExporter.Quality=(int)nQualityPercent; //do the export p3DExporter.ExportScene(pScene); } } catch(Exception err) { MessageBox.Show(err.Message); } } private void button1_Click(object sender, System.EventArgs e) { string sPath; sPath=workPath + @"\Globe\"; pScene=(IScene)pglobe; ExportSceneAnimation( pScene,sPath,timelength,100); // } // }
/
本文档为【输出avi视频】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。 本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。 网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。

历史搜索

    清空历史搜索