GetModelNodeThumbnail
Overloads
| Name | Description |
|---|---|
| GetModelNodeThumbnail(string path, CameraDirection dir, int width, int height) | VIZ 파일의 노드별 Thumbnail 이미지를 생성 후 반환 |
GetModelNodeThumbnail(string path, CameraDirection dir, int width, int height)
public Dictionary<int, Image> GetModelNodeThumbnail(string path, CameraDirection dir, int width, int height)
VIZ 파일의 노드별 Thumbnail 이미지를 생성 후 반환
Parameters
| Name | Type | Description |
|---|---|---|
| path | string | VIZ 파일 |
| dir | CameraDirection | 뷰 방향 |
| width | int | Image Width |
| height | int | Image Height |
Returns
| Type | Description |
|---|---|
| Dictionary<int, Image> | Key : Node Id, Value : Thumbnail Image |
Examples
// 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;
}
}