|
NXPlanetViewCaptureScreen(String, Int32, Int32, Int32, Int32, Int32, Int32, XFrameCaptureBuffereCaptureMode, String, XThread) Method
|
Planet View에 도시되어 있는 내용을 해상도 조절하여 저장한다.
Planet2D 모드에서만 가능
Namespace: Pixoneer.NXDL.NXPlanetAssembly: NXPlanet (in NXPlanet.dll) Version: 2.0.3.38
Syntaxpublic bool CaptureScreen(
string outputPath,
int nX1,
int nX2,
int nY1,
int nY2,
int nOutNX,
int nOutNY,
XFrameCaptureBuffereCaptureMode mode,
out string strErr,
XThread thd
)
Parameters
- outputPath String
- 출력 경로
- nX1 Int32
- 캡쳐할 범위의 X축 방향 최소값(스크린 좌표)
- nX2 Int32
- 캡쳐할 범위의 X축 방향 최대값(스크린 좌표)
- nY1 Int32
- 캡쳐할 범위의 Y축 방향 최소값(스크린 좌표)
- nY2 Int32
- 캡쳐할 범위의 Y축 방향 최대값(스크린 좌표)
- nOutNX Int32
- X 방향의 출력 영상 크기(폭, 단위 : 화소)
- nOutNY Int32
- Y 방향의 출력 영상 크기(높이, 단위 : 화소)
- mode XFrameCaptureBuffereCaptureMode
- 캡처 모드
- strErr String
- 화면 캡쳐를 하지 못하는 경우, 이에 대한 에러 메시지
- thd XThread
- 프로세싱 쓰레드(null 가능)
Return Value
Boolean화면을 캡쳐하여 출력경로로 저장하면 true를, 아니면 false를 반환
Examplestring strOutputPath = "d:\\capture.xdm", strErr = "";
int x1 = 100;
int x2 = 200;
int y1 = 100;
int y2 = 200;
int nOutNX = 1000;
int nOutNY = 1000;
bool res = nxPlanetView2D.CaptureScreen(strOutputPath, x1, x2, y1, y2, nOutNX, nOutNY, XFrameCaptureBuffer::BASEMAP, out strErr, null);
See Also