MapSuiteGisEditor/WpfDesktopExtension/Shares/MapEngine.cs
/// <summary>This method returns world coordinates from screen coordinates.</summary>
/// <returns>This method returns world coordinates from screen coordinates.</returns>
/// <remarks>None</remarks>
/// <param name="worldExtent">This parameter is the world extent.</param>
/// <param name="screenX">
/// This parameter is the X coordinate of the point you want converted to world
/// coordinates.
/// </param>
/// <param name="screenY">
/// This parameter is the Y coordinate of the point you want converted to world
/// coordinates.
/// </param>
/// <param name="screenWidth">This parameter is the width of the screen.</param>
/// <param name="screenHeight">This parameter is the height of the screen.</param>
This method returns world coordinates from screen coordinates.
This method returns world coordinates from screen coordinates .
public static PointShape ToWorldCoordinate(RectangleShape worldExtent, float screenX, float screenY, float screenWidth, float screenHeight)
        {
            ValidatorHelper.CheckExtentIsValid(worldExtent, "worldExtent");
            ValidatorHelper.CheckInputValueIsLargerThan(screenWidth, "screenWidth", 0, RangeCheckingInclusion.ExcludeValue);
            ValidatorHelper.CheckInputValueIsLargerThan(screenHeight, "screenHeight", 0, RangeCheckingInclusion.ExcludeValue);
            return ExtentHelper.ToWorldCoordinate(worldExtent, screenX, screenY, screenWidth, screenHeight);
        }
public static PointShape ToWorldCoordinate ( RectangleShape worldExtent , float screenX , float screenY , float screenWidth , float screenHeight ) { ValidatorHelper . CheckExtentIsValid ( worldExtent , " " ) ; ValidatorHelper . CheckInputValueIsLargerThan ( screenWidth , " " , 0 , RangeCheckingInclusion . ExcludeValue ) ; ValidatorHelper . CheckInputValueIsLargerThan ( screenHeight , " " , 0 , RangeCheckingInclusion . ExcludeValue ) ; return ExtentHelper . ToWorldCoordinate ( worldExtent , screenX , screenY , screenWidth , screenHeight ) ; }
This method returns world coordinates from screen coordinates.
This method returns world coordinates from screen coordinates .
This method returns world coordinates from screen coordinates.
This method returns world coordinates from screen coordinates .
worldExtent
RectangleShape
This parameter is the world extent.
This parameter is the world extent .
screenX
float
This parameter is the X coordinate of the point you want converted to world
coordinates.
This parameter is the X coordinate of the point you want converted to world coordinates .
screenY
float
This parameter is the Y coordinate of the point you want converted to world
coordinates.
This parameter is the Y coordinate of the point you want converted to world coordinates .
screenWidth
float
This parameter is the width of the screen.
This parameter is the width of the screen .
screenHeight
float
This parameter is the height of the screen.
This parameter is the height of the screen .
remarks
None