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.GXNetX
Assembly: geoengine.core.gxnetx (in geoengine.core.gxnetx.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 m_min_x,
	ref double m_min_y,
	ref double m_max_x,
	ref double m_max_y,
	ref double v_min_x,
	ref double v_min_y,
	ref double v_max_x,
	ref double v_max_y,
	int fit_view
)

Parameters

m_min_x
Type: SystemDouble
X minimum (mm) of the area in map relative to map origin
m_min_y
Type: SystemDouble
Y minimum ..
m_max_x
Type: SystemDouble
X maximum ..
m_max_y
Type: SystemDouble
Y maximum ..
v_min_x
Type: SystemDouble
Min X in ground coordinate to fit to the area defined above
v_min_y
Type: SystemDouble
Min Y in ground coordinate ..
v_max_x
Type: SystemDouble
Max X in ground coordinate ..
v_max_y
Type: SystemDouble
Max Y in ground coordinate ..
fit_view
Type: SystemInt32
<define>MVIEW_FIT</define>
See Also