| CEMAPiGetBox2 Method |
Returns the coordinates of a user selected box in a warped view.
Available since Oasis montaj version: 5.0.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.GXNetAssembly: geosoft.desktop.gxnet (in geosoft.desktop.gxnet.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 str1,
ref double d2,
ref double d3,
ref double d4,
ref double d5,
ref double d6,
ref double d7,
ref double d8,
ref double d9
)
Public Function iGetBox2 (
str1 As String,
ByRef d2 As Double,
ByRef d3 As Double,
ByRef d4 As Double,
ByRef d5 As Double,
ByRef d6 As Double,
ByRef d7 As Double,
ByRef d8 As Double,
ByRef d9 As Double
) As Integer
public:
int iGetBox2(
String^ str1,
double% d2,
double% d3,
double% d4,
double% d5,
double% d6,
double% d7,
double% d8,
double% d9
)
member iGetBox2 :
str1 : string *
d2 : float byref *
d3 : float byref *
d4 : float byref *
d5 : float byref *
d6 : float byref *
d7 : float byref *
d8 : float byref *
d9 : float byref -> int
Parameters
- str1
- Type: SystemString
user prompt string - d2
- Type: SystemDouble
X1 bottom left corner - d3
- Type: SystemDouble
Y1 - d4
- Type: SystemDouble
X2 bottom right corner - d5
- Type: SystemDouble
Y2 - d6
- Type: SystemDouble
X3 top right corner - d7
- Type: SystemDouble
Y3 - d8
- Type: SystemDouble
X4 top left corner - d9
- Type: SystemDouble
Y4
Return Value
Type:
Int32
0 if point returned.
1 if user cancelled.
See Also