GenericSPGetMapScale Method |
Retrieve the map scale. For non-cartesian datasets this is measured in the centre of the
current view extents and may change when panning.
Namespace:
Cadcorp.GFB.CadcorpSP
Assembly:
Cadcorp.GFB.GenericStoredProcedures (in Cadcorp.GFB.GenericStoredProcedures.dll) Version: 9.0.2618.0 (9.0.2618.0)
Syntaxpublic double GetMapScale(
int width,
int height
)
Public Function GetMapScale (
width As Integer,
height As Integer
) As Double
Parameters
- width
- Type: SystemInt32
The width, in pixels, of the area being rendered. - height
- Type: SystemInt32
The height, in pixels, of the area being rendered.
Return Value
Type:
DoubleThe map scale
RemarksIf an item was open at the beginning of this method, it will remain so.
See Also