MapSuiteGisEditor/WpfDesktopExtension/Shares/MapEngine.cs
/// <summary>This method returns screen coordinates from world coordinates.</summary>
/// <returns>This method returns screen coordinates from world coordinates.</returns>
/// <remarks>None</remarks>
/// <param name="worldExtent">This parameter is the world extent.</param>
/// <param name="worldPointFeature">This parameter is the world point feature you want converted to a screen point.</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 screen coordinates from world coordinates.
This method returns screen coordinates from world coordinates .
public static ScreenPointF ToScreenCoordinate(RectangleShape worldExtent, Feature worldPointFeature, float screenWidth, float screenHeight)
        {
            ValidatorHelper.CheckExtentIsValid(worldExtent, "worldExtent");
            ValidatorHelper.CheckFeatureIsValid(worldPointFeature);
            ValidatorHelper.CheckInputValueIsLargerThan(screenWidth, "screenWidth", 0, RangeCheckingInclusion.ExcludeValue);
            ValidatorHelper.CheckInputValueIsLargerThan(screenHeight, "screenHeight", 0, RangeCheckingInclusion.ExcludeValue);
            return ExtentHelper.ToScreenCoordinate(worldExtent, worldPointFeature, screenWidth, screenHeight);
        }
public static ScreenPointF ToScreenCoordinate ( RectangleShape worldExtent , Feature worldPointFeature , float screenWidth , float screenHeight ) { ValidatorHelper . CheckExtentIsValid ( worldExtent , " " ) ; ValidatorHelper . CheckFeatureIsValid ( worldPointFeature ) ; ValidatorHelper . CheckInputValueIsLargerThan ( screenWidth , " " , 0 , RangeCheckingInclusion . ExcludeValue ) ; ValidatorHelper . CheckInputValueIsLargerThan ( screenHeight , " " , 0 , RangeCheckingInclusion . ExcludeValue ) ; return ExtentHelper . ToScreenCoordinate ( worldExtent , worldPointFeature , screenWidth , screenHeight ) ; }
This method returns screen coordinates from world coordinates.
This method returns screen coordinates from world coordinates .
This method returns screen coordinates from world coordinates.
This method returns screen coordinates from world coordinates .
worldExtent
RectangleShape
This parameter is the world extent.
This parameter is the world extent .
worldPointFeature
Feature
This parameter is the world point feature you want converted to a screen point.
This parameter is the world point feature you want converted to a screen point .
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