Click or drag to resize

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)
Syntax
public double GetMapScale(
	int width,
	int height
)

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: Double
The map scale
Remarks
If an item was open at the beginning of this method, it will remain so.
See Also