三维场景导出图片

            OutPut outPut = _sceneCtrl3D.GetOutPut();
            uint width = outPut.GetViewWidth();
            uint height = outPut.GetViewHeight();
            FrmSceneOutput sceneOutput = new FrmSceneOutput(width, height);
            if (sceneOutput.ShowDialog() == DialogResult.OK)
            {
                outPut.SetImageInfo(sceneOutput.FilePath, sceneOutput.ImgWidth, sceneOutput.ImgHeight,
                    sceneOutput.Unit, sceneOutput.UnitDpi, sceneOutput.ImgDpi, sceneOutput.ShowOverlay);
                int success = outPut.OutImage(false);
                if (success != 1)
                {
                    MessageBox.Show("图像导出失败!");
                }
            }

 

posted @ 2023-01-29 11:05  恋上微笑的天使  阅读(22)  评论(0编辑  收藏  举报