Click or drag to resize
CMVIEWBestFitWindow Method
Fit an area in ground coordinates centered to an area in mm on map or vise versa keeping X and Y scales the same.

Available since Oasis montaj version: 5.1.8
License: Available to anyone.  

Namespace: GeoEngine.Core.GXNet
Assembly: geoengine.core.gxnet (in geoengine.core.gxnet.dll)
Notes
X and Y scales will be redefined and units will remain unchanged. The final X and Y ranges (if changed) are returned.
Syntax
public void BestFitWindow(
	ref double d1,
	ref double d2,
	ref double d3,
	ref double d4,
	ref double d5,
	ref double d6,
	ref double d7,
	ref double d8,
	int i9
)

Parameters

d1
Type: SystemDouble
X minimum (mm) of the area in map relative to map origin
d2
Type: SystemDouble
Y minimum ..
d3
Type: SystemDouble
X maximum ..
d4
Type: SystemDouble
Y maximum ..
d5
Type: SystemDouble
min X in ground coordinate to fit to the area defined above
d6
Type: SystemDouble
min Y in ground coordinate ..
d7
Type: SystemDouble
max X in ground coordinate ..
d8
Type: SystemDouble
max Y in ground coordinate ..
i9
Type: SystemInt32
See MVIEW_FITConstant
See Also