본문으로 건너뛰기

GetModelThumbnail

Overloads

NameDescription
GetModelThumbnail(string path)VIZ 파일 헤더에 포함되어 있는 Thumbnail 반환
GetModelThumbnail(string path, CameraDirection dir, int width, int height)VIZ 파일의 Thumbnail 이미지를 생성 후 반환

GetModelThumbnail(string path)

public static Image GetModelThumbnail(string path)

VIZ 파일 헤더에 포함되어 있는 Thumbnail 반환

Parameters

NameTypeDescription
pathstringVIZ 파일

Returns

TypeDescription
ImageThumbnail

Examples

// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void ThumbnailFromFile()
{
string path = "C:\\Model\\BLOCK.viz";

System.Drawing.Image thumbnail = VIZCore3D.NET.Manager.ModelManager.GetModelThumbnail(path);

if (thumbnail != null)
{
// Some code here...
}
}

GetModelThumbnail(string path, CameraDirection dir, int width, int height)

public Image GetModelThumbnail(string path, CameraDirection dir, int width, int height)

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

Parameters

NameTypeDescription
pathstringVIZ 파일
dirCameraDirection뷰 방향
widthintImage Width
heightintImage Height

Returns

TypeDescription
ImageThumbnail Image

Examples

// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void ThumbnailFromFile()
{
string path = "C:\\Model\\BLOCK.viz";

System.Drawing.Image thumbnail = vizcore3d.Model.GetModelThumbnail(
path
, VIZCore3D.NET.Data.CameraDirection.ISO_PLUS /* Direction */
, 800 /* Thumbnail Image Width */
, 600 /* Thumbnail Image Height */
);

if(thumbnail != null)
{
// Some code here...
}
}