MapSuiteGisEditor/WpfDesktopExtension/Shares/MapEngine.cs
/// <summary>This method returns world coordinates from screen coordinates, based on the CurrentExtent.</summary>
/// <returns>This method returns world coordinates from screen coordinates, based on the CurrentExtent.</returns>
/// <remarks>None</remarks>
/// <param name="screenPoint"> This parameter is 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, based on the CurrentExtent.
This method returns world coordinates from screen coordinates based on the CurrentExtent .
public PointShape ToWorldCoordinate(ScreenPointF screenPoint, float screenWidth, float screenHeight)
        {
            ValidatorHelper.CheckInputValueIsLargerThan(screenWidth, "screenWidth", 0, RangeCheckingInclusion.ExcludeValue);
            ValidatorHelper.CheckInputValueIsLargerThan(screenHeight, "screenHeight", 0, RangeCheckingInclusion.ExcludeValue);
            ValidatorHelper.CheckExtentIsValid(currentExtent, "currentExtent");
            return ToWorldCoordinate(screenPoint.X, screenPoint.Y, screenWidth, screenHeight);
        }
public PointShape ToWorldCoordinate ( ScreenPointF screenPoint , float screenWidth , float screenHeight ) { ValidatorHelper . CheckInputValueIsLargerThan ( screenWidth , " " , 0 , RangeCheckingInclusion . ExcludeValue ) ; ValidatorHelper . CheckInputValueIsLargerThan ( screenHeight , " " , 0 , RangeCheckingInclusion . ExcludeValue ) ; ValidatorHelper . CheckExtentIsValid ( currentExtent , " " ) ; return ToWorldCoordinate ( screenPoint . X , screenPoint . Y , screenWidth , screenHeight ) ; }
This method returns world coordinates from screen coordinates, based on the CurrentExtent.
This method returns world coordinates from screen coordinates based on the CurrentExtent .
This method returns world coordinates from screen coordinates, based on the CurrentExtent.
This method returns world coordinates from screen coordinates based on the CurrentExtent .
screenPoint
ScreenPointF
This parameter is the point you want converted to world coordinates.
This parameter is 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