 | CEMAPiGetBox2 Method |
Returns the coordinates of a user selected box in a warped view.
Namespace:
Geosoft.Desktop.GXNetX
Assembly:
geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll) Version: 2024.2.0.25
Syntaxpublic 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
)
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
)
Public Function iGetBox2 (
str_val As String,
ByRef x1 As Double,
ByRef y1 As Double,
ByRef x2 As Double,
ByRef y2 As Double,
ByRef x3 As Double,
ByRef y3 As Double,
ByRef x4 As Double,
ByRef y4 As Double
) As Integer
Public Function iGetBox2 (
str_val As String,
ByRef x1 As Double,
ByRef y1 As Double,
ByRef x2 As Double,
ByRef y2 As Double,
ByRef x3 As Double,
ByRef y3 As Double,
ByRef x4 As Double,
ByRef y4 As Double
) As Integer
public:
int iGetBox2(
String^ str_val,
double% x1,
double% y1,
double% x2,
double% y2,
double% x3,
double% y3,
double% x4,
double% y4
)
public:
int iGetBox2(
String^ str_val,
double% x1,
double% y1,
double% x2,
double% y2,
double% x3,
double% y3,
double% x4,
double% y4
)
member iGetBox2 :
str_val : string *
x1 : float byref *
y1 : float byref *
x2 : float byref *
y2 : float byref *
x3 : float byref *
y3 : float byref *
x4 : float byref *
y4 : float byref -> int
member iGetBox2 :
str_val : string *
x1 : float byref *
y1 : float byref *
x2 : float byref *
y2 : float byref *
x3 : float byref *
y3 : float byref *
x4 : float byref *
y4 : float byref -> int
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.
Remarks
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.
See Also