Click or drag to resize

ViewManagerCaptureImage Method

현재 화면을 이미지로 반환

Namespace:  VIZCore3D.NET.Manager
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public Image CaptureImage()

Return Value

Type: Image
현재 화면 이미지
Examples
C#
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example()
{
    // Image : Current View
    System.Drawing.Image img = vizcore3d.View.CaptureImage();
}

private void CaptureImageToClipboard()
{
    vizcore3d.View.CaptureImageToClipboard();
}

private void CaptureCustomSize(int width, int height)
{
    vizcore3d.View.BeginBackgroundRenderingMode(width, height);

    vizcore3d.View.RotateCamera(VIZCore3D.NET.Data.AxisDirection.Z_PLUS, 90);

    System.Drawing.Image resizedImg = vizcore3d.View.GetBackgroundRenderingImage();

    vizcore3d.View.EndBackgroundRenderingMode();
}
See Also