ModelManagerGetModelNodeThumbnail Method |
Namespace: VIZCore3D.NET.Manager
public Dictionary<int, Image> GetModelNodeThumbnail( string path, CameraDirection dir, int width, int height )
// VIZCore3D.NET Control private VIZCore3D.NET.VIZCore3DControl vizcore3d; private void ThumbnailByNodeFromFile() { string path = "C:\\Model\\BLOCK.viz"; Dictionary<int, System.Drawing.Image> thumbnail = vizcore3d.Model.GetModelNodeThumbnail( path , VIZCore3D.NET.Data.CameraDirection.ISO_PLUS /* Direction */ , 400 /* Thumbnail Image Width */ , 300 /* Thumbnail Image Height */ ); foreach (KeyValuePair<int, System.Drawing.Image> item in thumbnail) { int nodeId = item.Key; System.Drawing.Image thumb = item.Value; } }