Click or drag to resize

ViewManagerGetImage Method (ListInt32, Int32, Int32)

지정된 개체의 이미지를 반환

Namespace:  VIZCore3D.NET.Manager
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public Image GetImage(
	List<int> index,
	int width,
	int height
)

Parameters

index
Type: System.Collections.GenericListInt32
Node Index List
width
Type: SystemInt32
가로 길이 px
height
Type: SystemInt32
세로 길이 px

Return Value

Type: Image
개체 이미지
Examples
C#
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example()
{
    if (vizcore3d.Model.IsOpen() == false) return;

    List<int> index = new List<int>() { 100, 200, 300 };

    System.Drawing.Image img = vizcore3d.View.GetImage(
        index   /* Node Index */
        , 800   /* Width */
        , 600   /* Height */
        );
    if (img == null) return;

    SaveFileDialog dlg = new SaveFileDialog();
    dlg.Filter = "Image (.png)|*.png";
    if (dlg.ShowDialog() != DialogResult.OK) return;

    img.Save(dlg.FileName);

    VIZCore3D.NET.Utility.ExplorerHelper.Show(dlg.FileName);
}
See Also