MapSuiteGisEditor/WpfDesktopExtension/Shares/MapEngine.cs
/// <summary>This method returns a extent that has been zoomed into a certain scale.</summary>
/// <returns>This method returns a extent that has been zoomed into a certain scale.</returns>
/// <remarks>None</remarks>
/// <param name="targetScale">This parameter is the scale you want to zoom into.</param>
/// <param name="worldExtent">This parameter is the world extent you want zoomed into the scale.</param>
/// <param name="worldExtentUnit">This parameter is the geographic unit of the world extent parameter.</param>
/// <param name="screenWidth">This parameter is the screen width.</param>
/// <param name="screenHeight">This parameter is the screen height.</param>
This method returns a extent that has been zoomed into a certain scale.
This method returns a extent that has been zoomed into a certain scale .
public static RectangleShape ZoomToScale(double targetScale, RectangleShape worldExtent, GeographyUnit worldExtentUnit, float screenWidth, float screenHeight)
        {
            ValidatorHelper.CheckGeographyUnitIsValid(worldExtentUnit, "worldExtentUnit");
            ValidatorHelper.CheckExtentIsValid(worldExtent, "worldExtent");
            return ExtentHelper.ZoomToScale(targetScale, worldExtent, worldExtentUnit, screenWidth, screenHeight);
        }
public static RectangleShape ZoomToScale ( double targetScale , RectangleShape worldExtent , GeographyUnit worldExtentUnit , float screenWidth , float screenHeight ) { ValidatorHelper . CheckGeographyUnitIsValid ( worldExtentUnit , " " ) ; ValidatorHelper . CheckExtentIsValid ( worldExtent , " " ) ; return ExtentHelper . ZoomToScale ( targetScale , worldExtent , worldExtentUnit , screenWidth , screenHeight ) ; }
This method returns a extent that has been zoomed into a certain scale.
This method returns a extent that has been zoomed into a certain scale .
This method returns a extent that has been zoomed into a certain scale.
This method returns a extent that has been zoomed into a certain scale .
targetScale
double
This parameter is the scale you want to zoom into.
This parameter is the scale you want to zoom into .
worldExtent
RectangleShape
This parameter is the world extent you want zoomed into the scale.
This parameter is the world extent you want zoomed into the scale .
worldExtentUnit
GeographyUnit
This parameter is the geographic unit of the world extent parameter.
This parameter is the geographic unit of the world extent parameter .
screenWidth
float
This parameter is the screen width.
This parameter is the screen width .
screenHeight
float
This parameter is the screen height.
This parameter is the screen height .
remarks
None