CaptureImage
Overloads
| Name | Description |
|---|---|
| CaptureImage() | 현재 화면을 이미지로 반환 |
| CaptureImage(int x, int y, int width, int height) | 지정한 영역의 현재 화면을 이미지로 반환 |
| CaptureImage(Rectangle rectangle) | 지정한 영역의 현재 화면을 이미지로 반환 |
| CaptureImage(Point start, Point end) | 지정한 영역의 현재 화면을 이미지로 반환 |
CaptureImage()
public Image CaptureImage()
현재 화면을 이미지로 반환
Returns
| Type | Description |
|---|---|
| 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
| Name | Type | Description |
|---|---|---|
| x | int | 화면 위치 x |
| y | int | 화면 위치 y |
| width | int | 넓이 |
| height | int | 높이 |
Returns
| Type | Description |
|---|---|
| Image | 지정한 영역의 현재 화면 이미지 |
CaptureImage(Rectangle rectangle)
public Image CaptureImage(Rectangle rectangle)
지정한 영역의 현재 화면을 이미지로 반환
Parameters
| Name | Type | Description |
|---|---|---|
| rectangle | Rectangle | 화면 영역 |
Returns
| Type | Description |
|---|---|
| Image | 지정한 영역의 현재 화면 이미지 |
CaptureImage(Point start, Point end)
public Image CaptureImage(Point start, Point end)
지정한 영역의 현재 화면을 이미지로 반환
Parameters
| Name | Type | Description |
|---|---|---|
| start | Point | 화면 시작위치 |
| end | Point | 화면 끝위치 |
Returns
| Type | Description |
|---|---|
| Image | 지정한 영역의 현재 화면 이미지 |