Click or drag to resize
XDL

NXPlanetViewCaptureScreenByBlock Method (String, Int32, Int32, Int32, Int32, Int32, Int32, XFrameCaptureBuffereCaptureMode, NXPlanetView, String, XThread, Int32)

Planet View에 도시되어 있는 내용을 임시 PlanetView 를 이용하여 해상도 조절하여 저장한다.
임시 PlanetView 의 Width, Height 는 256 보다 큰 값으로 각각 설정한다.
Planet View에서 선택한 영역의 데이타를 임시 PlanetView에 block별(256*256)로 도시한 뒤 캡쳐한다.
이렇게 캡쳐한 block별 영상을 merge 하여 하나의 영상 파일로 저장한다.
Planet2D 모드에서만 가능

Namespace:  Pixoneer.NXDL.NXPlanet
Assembly:  NXPlanet (in NXPlanet.dll) Version: 2.0.3.31
Syntax
C#
public bool CaptureScreenByBlock(
	string outputPath,
	int nX1,
	int nX2,
	int nY1,
	int nY2,
	int nOutNX,
	int nOutNY,
	XFrameCaptureBuffereCaptureMode mode,
	NXPlanetView blockView,
	out string strErr,
	XThread thd,
	int renderTime
)

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
캡처 모드
blockView
Type: Pixoneer.NXDL.NXPlanetNXPlanetView
메인 PlanetView 의 내용을 block 별로 임시 도시하기 위한 임의의 PlanetView(Width, Height 는 300으로 설정)
strErr
Type: SystemString
화면 캡쳐를 하지 못하는 경우, 이에 대한 에러 메시지
thd
Type: Pixoneer.NXDLXThread
프로세싱 쓰레드(null 가능)
renderTime
Type: SystemInt32
임시 PlanetView의 block별 영상 데이타 도시 완료 시간.(기본값은 300(0.3초))

Return Value

Type: Boolean
화면을 캡쳐하여 출력경로로 저장하면 true를, 아니면 false를 반환
See Also