Click or drag to resize

ModelManagerGetModelNodeThumbnail Method

VIZ 파일의 노드별 Thumbnail 이미지를 생성 후 반환

Namespace:  VIZCore3D.NET.Manager
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public Dictionary<int, Image> GetModelNodeThumbnail(
	string path,
	CameraDirection dir,
	int width,
	int height
)

Parameters

path
Type: SystemString
VIZ 파일
dir
Type: VIZCore3D.NET.DataCameraDirection
뷰 방향
width
Type: SystemInt32
Image Width
height
Type: SystemInt32
Image Height

Return Value

Type: DictionaryInt32, Image
Key : Node Id, Value : Thumbnail Image
Examples
C#
// 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;
    }
}
See Also