AnyCAD C#开发-显示图片ImageNode
作者:互联网
private void button27_Click(object sender, EventArgs e) { OpenFileDialog dlg = new OpenFileDialog(); dlg.Filter = "Image Files (*.png;*.jpg;*.bmp)|*.png;*.jpg;*.bmp|All Files(*.*)|*.*"; if (DialogResult.OK != dlg.ShowDialog()) return; ImageNode node = new ImageNode(); node.SetImage(new AnyCAD.Platform.Path(dlg.FileName)); node.SetWidth(100); node.SetHeight(200); renderView.ShowSceneNode(node); }
Caesar卢尚宇
2020年11月24日
标签:node,Files,dlg,C#,ImageNode,new,AnyCAD 来源: https://www.cnblogs.com/nxopen2018/p/14032953.html