본문으로 건너뛰기

CaptureImage

Overloads

NameDescription
CaptureImage()현재 화면을 이미지로 반환
CaptureImage(int x, int y, int width, int height)지정한 영역의 현재 화면을 이미지로 반환
CaptureImage(Rectangle rectangle)지정한 영역의 현재 화면을 이미지로 반환
CaptureImage(Point start, Point end)지정한 영역의 현재 화면을 이미지로 반환

CaptureImage()

public Image CaptureImage()

현재 화면을 이미지로 반환

Returns

TypeDescription
Image현재 화면 이미지

Examples

// 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();
}

CaptureImage(int x, int y, int width, int height)

public Image CaptureImage(int x, int y, int width, int height)

지정한 영역의 현재 화면을 이미지로 반환

Parameters

NameTypeDescription
xint화면 위치 x
yint화면 위치 y
widthint넓이
heightint높이

Returns

TypeDescription
Image지정한 영역의 현재 화면 이미지

CaptureImage(Rectangle rectangle)

public Image CaptureImage(Rectangle rectangle)

지정한 영역의 현재 화면을 이미지로 반환

Parameters

NameTypeDescription
rectangleRectangle화면 영역

Returns

TypeDescription
Image지정한 영역의 현재 화면 이미지

CaptureImage(Point start, Point end)

public Image CaptureImage(Point start, Point end)

지정한 영역의 현재 화면을 이미지로 반환

Parameters

NameTypeDescription
startPoint화면 시작위치
endPoint화면 끝위치

Returns

TypeDescription
Image지정한 영역의 현재 화면 이미지