ViewManagerGetImage Method (ListInt32, Int32, Int32) |
Namespace: VIZCore3D.NET.Manager
public Image GetImage( List<int> index, int width, int height )
// VIZCore3D.NET Control private VIZCore3D.NET.VIZCore3DControl vizcore3d; private void Example() { if (vizcore3d.Model.IsOpen() == false) return; List<int> index = new List<int>() { 100, 200, 300 }; System.Drawing.Image img = vizcore3d.View.GetImage( index /* Node Index */ , 800 /* Width */ , 600 /* Height */ ); if (img == null) return; SaveFileDialog dlg = new SaveFileDialog(); dlg.Filter = "Image (.png)|*.png"; if (dlg.ShowDialog() != DialogResult.OK) return; img.Save(dlg.FileName); VIZCore3D.NET.Utility.ExplorerHelper.Show(dlg.FileName); }