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日