Click or drag to resize
CEMAPiGetBox2 Method
Returns the coordinates of a user selected box in a warped view.

Available since Oasis montaj version: 5.0
Limitations: May not be available if running outside of a Oasis Montaj or from a command line program.  
License: Available to anyone.  

Namespace: Geosoft.Desktop.GXNetX
Assembly: geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll)
Notes
If the data view has a rotational (or other) warp, then the iGetBox_EMAP function returns only opposite diagonal points in the box, not enough info to determine the other two corners. This function returns the exact coordinates of all four corners, calculated from the pixel locations.
Syntax
public int iGetBox2(
	string str_val,
	ref double x1,
	ref double y1,
	ref double x2,
	ref double y2,
	ref double x3,
	ref double y3,
	ref double x4,
	ref double y4
)

Parameters

str_val
Type: SystemString
User prompt string
x1
Type: SystemDouble
X1 bottom left corner
y1
Type: SystemDouble
Y1
x2
Type: SystemDouble
X2 bottom right corner
y2
Type: SystemDouble
Y2
x3
Type: SystemDouble
X3 top right corner
y3
Type: SystemDouble
Y3
x4
Type: SystemDouble
X4 top left corner
y4
Type: SystemDouble
Y4

Return Value

Type: Int32
0 if point returned. 1 if user cancelled.
See Also