MapSuiteGisEditor/WpfDesktopExtension/Shares/MapEngine.cs
/// <summary>
/// Draw a group of static layers and return a new image with the specified width and height.
/// </summary>
/// <param name="width">This parameter specifies the width of the returning image.</param>
/// <param name="height">This parameter specifies the height of the returning image.</param>
/// <param name="mapUnit">This parameter specifies the MapUnit used in the current map.</param>
/// <returns>The resulting image after drawing the group of static layers based on the specified width and height.</returns>
Draw a group of static layers and return a new image with the specified width and height.
Draw a group of static layers and return a new image with the specified width and height .
public GeoImage DrawStaticLayers(int width, int height, GeographyUnit mapUnit)
        {
            ValidatorHelper.CheckInputValueIsLargerThan(width, "width", 0, RangeCheckingInclusion.ExcludeValue);
            ValidatorHelper.CheckInputValueIsLargerThan(height, "height", 0, RangeCheckingInclusion.ExcludeValue);
            ValidatorHelper.CheckGeographyUnitIsValid(mapUnit, "mapUnit");
            ValidatorHelper.CheckExtentIsValid(currentExtent, "currentExtent");
            return Draw(staticLayers, width, height, mapUnit, true);
        }
public GeoImage DrawStaticLayers ( int width , int height , GeographyUnit mapUnit ) { ValidatorHelper . CheckInputValueIsLargerThan ( width , " " , 0 , RangeCheckingInclusion . ExcludeValue ) ; ValidatorHelper . CheckInputValueIsLargerThan ( height , " " , 0 , RangeCheckingInclusion . ExcludeValue ) ; ValidatorHelper . CheckGeographyUnitIsValid ( mapUnit , " " ) ; ValidatorHelper . CheckExtentIsValid ( currentExtent , " " ) ; return Draw ( staticLayers , width , height , mapUnit , true ) ; }
Draw a group of static layers and return a new image with the specified width and height.
Draw a group of static layers and return a new image with the specified width and height .
The resulting image after drawing the group of static layers based on the specified width and height.
The resulting image after drawing the group of static layers based on the specified width and height .
width
int
This parameter specifies the width of the returning image.
This parameter specifies the width of the returning image .
height
int
This parameter specifies the height of the returning image.
This parameter specifies the height of the returning image .
mapUnit
GeographyUnit
This parameter specifies the MapUnit used in the current map.
This parameter specifies the MapUnit used in the current map .