GM_Utility .CalcScaleRectangle 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: 18.0.0.0 (18.0.0.0)

C#
Copy
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:
GlobalMapper
.
GM_Point_t
IN: Center point in global coordinates - aScale
-
Type:
System
.
Double
IN: Scale to calculate at (i.e. for 1:24K, pass 24000.0) - aDC
-
Type:
System
.
IntPtr
(HDC) IN: Device context that will be drawn to - aPixWidth
-
Type:
System
.
Int32
IN: pixel width - aPixHeight
-
Type:
System
.
Int32
IN: pixel height - aScaleRect
-
Type:
GlobalMapper
.
GM_Rectangle_t
OUT: rectangle at given scale
Return Value
Type: GM_Error_t32A GM Error Code
