MapSuiteGisEditor/WpfDesktopExtension/Shares/MapEngine.cs
/// <summary>This method returns screen coordinates from the specified world coordinate pointFeature, based on the CurrentExtent.</summary>
/// <returns>This method returns screen coordinates from the specified world coordinate pointFeature, based on the CurrentExtent.</returns>
/// <remarks>None</remarks>
/// <param name="worldPointFeature">This parameter is the world coordinate pointFeature you want converted to a screen point.</param>
/// <param name="screenWidth">This parameter is the width of the screen for the CurrentExtent.</param>
/// <param name="screenHeight">This parameter is the height of the screen for the CurrentExtent.</param>
This method returns screen coordinates from the specified world coordinate pointFeature, based on the CurrentExtent.
This method returns screen coordinates from the specified world coordinate pointFeature based on the CurrentExtent .
public ScreenPointF ToScreenCoordinate(Feature worldPointFeature, float screenWidth, float screenHeight)
        {
            ValidatorHelper.CheckInputValueIsLargerThan(screenWidth, "screenWidth", 0, RangeCheckingInclusion.ExcludeValue);
            ValidatorHelper.CheckInputValueIsLargerThan(screenHeight, "screenHeight", 0, RangeCheckingInclusion.ExcludeValue);
            ValidatorHelper.CheckExtentIsValid(currentExtent, "currentExtent");
            return ToScreenCoordinate(currentExtent, worldPointFeature, screenWidth, screenHeight);
        }
public ScreenPointF ToScreenCoordinate ( Feature worldPointFeature , float screenWidth , float screenHeight ) { ValidatorHelper . CheckInputValueIsLargerThan ( screenWidth , " " , 0 , RangeCheckingInclusion . ExcludeValue ) ; ValidatorHelper . CheckInputValueIsLargerThan ( screenHeight , " " , 0 , RangeCheckingInclusion . ExcludeValue ) ; ValidatorHelper . CheckExtentIsValid ( currentExtent , " " ) ; return ToScreenCoordinate ( currentExtent , worldPointFeature , screenWidth , screenHeight ) ; }
This method returns screen coordinates from the specified world coordinate pointFeature, based on the CurrentExtent.
This method returns screen coordinates from the specified world coordinate pointFeature based on the CurrentExtent .
This method returns screen coordinates from the specified world coordinate pointFeature, based on the CurrentExtent.
This method returns screen coordinates from the specified world coordinate pointFeature based on the CurrentExtent .
worldPointFeature
Feature
This parameter is the world coordinate pointFeature you want converted to a screen point.
This parameter is the world coordinate pointFeature you want converted to a screen point .
screenWidth
float
This parameter is the width of the screen for the CurrentExtent.
This parameter is the width of the screen for the CurrentExtent .
screenHeight
float
This parameter is the height of the screen for the CurrentExtent.
This parameter is the height of the screen for the CurrentExtent .
remarks
None