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:
GlobalMapperWrapperNET45 (in GlobalMapperWrapperNET45.dll) Version: 19.1.0.0 (19.1.0.0)
Syntax public static GM_Error_t32 CalcScaleRectangle(
GM_Point_t aCenterPoint,
double aScale,
IntPtr aDC,
int aPixWidth,
int aPixHeight,
out GM_Rectangle_t aScaleRect
)
Public Shared Function CalcScaleRectangle (
aCenterPoint As GM_Point_t,
aScale As Double,
aDC As IntPtr,
aPixWidth As Integer,
aPixHeight As Integer,
<OutAttribute> ByRef aScaleRect As GM_Rectangle_t
) As GM_Error_t32
public:
static GM_Error_t32 CalcScaleRectangle(
GM_Point_t aCenterPoint,
double aScale,
IntPtr aDC,
int aPixWidth,
int aPixHeight,
[OutAttribute] GM_Rectangle_t^% aScaleRect
)
Parameters
- aCenterPoint
- Type: GlobalMapper.TypesGM_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: GlobalMapper.TypesGM_Rectangle_t
OUT: rectangle at given scale
Return Value
Type:
GM_Error_t32A GM Error Code
See Also