Click or drag to resize
XDL

NXPlanetViewCaptureScreen Method (String, Int32, Int32, Int32, Int32, Int32, Int32, XFrameCaptureBuffereCaptureMode, String, XThread)

Planet View에 도시되어 있는 내용을 해상도 조절하여 저장한다. Planet2D 모드에서만 가능

Namespace:  Pixoneer.NXDL.NXPlanet
Assembly:  NXPlanet (in NXPlanet.dll) Version: 2.0.3.31
Syntax
C#
public 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
Type: SystemString
출력 경로
nX1
Type: SystemInt32
캡쳐할 범위의 X축 방향 최소값(스크린 좌표)
nX2
Type: SystemInt32
캡쳐할 범위의 X축 방향 최대값(스크린 좌표)
nY1
Type: SystemInt32
캡쳐할 범위의 Y축 방향 최소값(스크린 좌표)
nY2
Type: SystemInt32
캡쳐할 범위의 Y축 방향 최대값(스크린 좌표)
nOutNX
Type: SystemInt32
X 방향의 출력 영상 크기(폭, 단위 : 화소)
nOutNY
Type: SystemInt32
Y 방향의 출력 영상 크기(높이, 단위 : 화소)
mode
Type: Pixoneer.NXDL.NGRXFrameCaptureBuffereCaptureMode
캡처 모드
strErr
Type: SystemString
화면 캡쳐를 하지 못하는 경우, 이에 대한 에러 메시지
thd
Type: Pixoneer.NXDLXThread
프로세싱 쓰레드(null 가능)

Return Value

Type: Boolean
화면을 캡쳐하여 출력경로로 저장하면 true를, 아니면 false를 반환
Examples
string 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