Click or drag to resize

GM_UtilityCalcScaleRectangle Method

Calculate the rectangle in global coordinates required to draw at the provided scale to the given device of the given size.

Namespace:  GlobalMapper
Assembly:  GlobalMapperWrapperNET (in GlobalMapperWrapperNET.dll) Version: 19.1.0.0 (19.1.0.0)
Syntax
C#
public static GM_Error_t32 CalcScaleRectangle(
	GM_Point_t aCenterPoint,
	double aScale,
	IntPtr aDC,
	int aPixWidth,
	int aPixHeight,
	out GM_Rectangle_t aScaleRect
)

Parameters

aCenterPoint
Type: GlobalMapperGM_Point_t
IN: Center point in global coordinates
aScale
Type: SystemDouble
IN: Scale to calculate at (i.e. for 1:24K, pass 24000.0)
aDC
Type: SystemIntPtr
(HDC) IN: Device context that will be drawn to
aPixWidth
Type: SystemInt32
IN: pixel width
aPixHeight
Type: SystemInt32
IN: pixel height
aScaleRect
Type: GlobalMapperGM_Rectangle_t
OUT: rectangle at given scale

Return Value

Type: GM_Error_t32
A GM Error Code
See Also