MapSuiteGisEditor/WpfDesktopExtension/Shares/MapEngine.cs
/// <summary>
/// This method returns a new extent that is zoomed in by the percentage
/// provided.
/// </summary>
/// <returns>
/// This method returns a new extent that is zoomed in by the percentage
/// provided.
/// </returns>
/// <remarks>None</remarks>
/// <param name="worldExtent">This parameter is the world extent you want to zoom.</param>
/// <param name="percentage">This parameter is the percentage by which you want to zoom in.</param>
/// <param name="centerFeature">This parameter is the world point feature you want the extent to be centered on.</param>
/// <param name="screenWidth">This parameter is the width in screen coordinates.</param>
/// <param name="screenHeight">This parameter is the height in screen coordinates.</param>
This method returns a new extent that is zoomed in by the percentage
provided.
This method returns a new extent that is zoomed in by the percentage provided .
public static RectangleShape ZoomIntoCenter(RectangleShape worldExtent, int percentage, Feature centerFeature, float screenWidth, float screenHeight)
        {
            ValidatorHelper.CheckExtentIsValid(worldExtent, "worldExtent");
            ValidatorHelper.CheckInputValueIsInRange(percentage, "percentage", 0, RangeCheckingInclusion.ExcludeValue, 100, RangeCheckingInclusion.ExcludeValue);
            ValidatorHelper.CheckInputValueIsLargerThan(screenWidth, "screenWidth", 0, RangeCheckingInclusion.ExcludeValue);
            ValidatorHelper.CheckInputValueIsLargerThan(screenHeight, "screenHeight", 0, RangeCheckingInclusion.ExcludeValue);
            return ExtentHelper.ZoomIntoCenter(worldExtent, percentage, centerFeature, screenWidth, screenHeight);
        }
public static RectangleShape ZoomIntoCenter ( RectangleShape worldExtent , int percentage , Feature centerFeature , float screenWidth , float screenHeight ) { ValidatorHelper . CheckExtentIsValid ( worldExtent , " " ) ; ValidatorHelper . CheckInputValueIsInRange ( percentage , " " , 0 , RangeCheckingInclusion . ExcludeValue , 100 , RangeCheckingInclusion . ExcludeValue ) ; ValidatorHelper . CheckInputValueIsLargerThan ( screenWidth , " " , 0 , RangeCheckingInclusion . ExcludeValue ) ; ValidatorHelper . CheckInputValueIsLargerThan ( screenHeight , " " , 0 , RangeCheckingInclusion . ExcludeValue ) ; return ExtentHelper . ZoomIntoCenter ( worldExtent , percentage , centerFeature , screenWidth , screenHeight ) ; }
This method returns a new extent that is zoomed in by the percentage
provided.
This method returns a new extent that is zoomed in by the percentage provided .
This method returns a new extent that is zoomed in by the percentage
provided.
This method returns a new extent that is zoomed in by the percentage provided .
worldExtent
RectangleShape
This parameter is the world extent you want to zoom.
This parameter is the world extent you want to zoom .
percentage
int
This parameter is the percentage by which you want to zoom in.
This parameter is the percentage by which you want to zoom in .
centerFeature
Feature
This parameter is the world point feature you want the extent to be centered on.
This parameter is the world point feature you want the extent to be centered on .
screenWidth
float
This parameter is the width in screen coordinates.
This parameter is the width in screen coordinates .
screenHeight
float
This parameter is the height in screen coordinates.
This parameter is the height in screen coordinates .
remarks
None