MapSuiteGisEditor/WpfDesktopExtension/Shares/MapEngine.cs
/// <summary>This method returns the number of pixels between two world points using the CurrentExtent as reference.</summary>
/// <returns>This method returns the number of pixels between two world points.</returns>
/// <remarks>None</remarks>
/// <param name="worldPointFeature1">This parameter is the first pointFeture -- the one you want to measure from.</param>
/// <param name="worldPointFeature2">This parameter is the second pointFeature -- the one you want to measure to.</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 the number of pixels between two world points using the CurrentExtent as reference.
This method returns the number of pixels between two world points using the CurrentExtent as reference .
public float GetScreenDistanceBetweenTwoWorldPoints(Feature worldPointFeature1, Feature worldPointFeature2, float screenWidth, float screenHeight)
        {
            ValidatorHelper.CheckInputValueIsLargerThan(screenWidth, "screenWidth", 0, RangeCheckingInclusion.ExcludeValue);
            ValidatorHelper.CheckInputValueIsLargerThan(screenHeight, "screenHeight", 0, RangeCheckingInclusion.ExcludeValue);
            ValidatorHelper.CheckExtentIsValid(currentExtent, "currentExtent");
            return GetScreenDistanceBetweenTwoWorldPoints(currentExtent, worldPointFeature1, worldPointFeature2, screenWidth, screenHeight);
        }
public float GetScreenDistanceBetweenTwoWorldPoints ( Feature worldPointFeature1 , Feature worldPointFeature2 , float screenWidth , float screenHeight ) { ValidatorHelper . CheckInputValueIsLargerThan ( screenWidth , " " , 0 , RangeCheckingInclusion . ExcludeValue ) ; ValidatorHelper . CheckInputValueIsLargerThan ( screenHeight , " " , 0 , RangeCheckingInclusion . ExcludeValue ) ; ValidatorHelper . CheckExtentIsValid ( currentExtent , " " ) ; return GetScreenDistanceBetweenTwoWorldPoints ( currentExtent , worldPointFeature1 , worldPointFeature2 , screenWidth , screenHeight ) ; }
This method returns the number of pixels between two world points using the CurrentExtent as reference.
This method returns the number of pixels between two world points using the CurrentExtent as reference .
This method returns the number of pixels between two world points.
This method returns the number of pixels between two world points .
worldPointFeature1
Feature
This parameter is the first pointFeture -- the one you want to measure from.
This parameter is the first pointFeture -- the one you want to measure from .
worldPointFeature2
Feature
This parameter is the second pointFeature -- the one you want to measure to.
This parameter is the second pointFeature -- the one you want to measure to .
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