Click or drag to resize

GM_UtilityCalcWorldRectSize Method

Calculates the width and height of a rectangle in the current projection. The rectangle can either be specified or the last drawn rectangle can be used.

Namespace:  GlobalMapper
Assembly:  GlobalMapperWrapperNET45 (in GlobalMapperWrapperNET45.dll) Version: 19.1.0.0 (19.1.0.0)
Syntax
public static GM_Error_t32 CalcWorldRectSize(
	GM_Rectangle_t aWorldBounds,
	out double aWidthMeters,
	out double aHeightMeters
)

Parameters

aWorldBounds
Type: GlobalMapper.TypesGM_Rectangle_t
IN: World bounds to calc size of or NULL for last drawn
aWidthMeters
Type: SystemDouble
OUT: Width of rectangle in meters
aHeightMeters
Type: SystemDouble
OUT: Height of rectangle in meters

Return Value

Type: GM_Error_t32
A GM Error Code
See Also