三维场景导出图片
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("图像导出失败!"); } }
本博有部分内容来自网络,如有问题请联系:hebeilijianghua@qq.com,并注明来自博客园。