GetModelThumbnail
Overloads
| Name | Description |
|---|---|
| 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
| Name | Type | Description |
|---|---|---|
| path | string | VIZ 파일 |
Returns
| Type | Description |
|---|---|
| Image | Thumbnail |
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
| Name | Type | Description |
|---|---|---|
| path | string | VIZ 파일 |
| dir | CameraDirection | 뷰 방향 |
| width | int | Image Width |
| height | int | Image Height |
Returns
| Type | Description |
|---|---|
| Image | Thumbnail 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...
}
}