MapSuiteGisEditor/WpfDesktopExtension/Shares/MapEngine.cs
/// <summary>
/// Draw a group of layers and return a new image with the specified width and height.
/// </summary>
/// <param name="layers">This parameter specifies the target layers to be drawn.</param>
/// <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>
/// <returns>The resulting image after drawing the target layers based on the specified width and height.</returns>
/// <param name="mapUnit">This parameter specifies the MapUnit used in the current map.</param>
Draw a group of layers and return a new image with the specified width and height.
Draw a group of layers and return a new image with the specified width and height .
public GeoImage Draw(IEnumerable<Layer> layers, int width, int height, GeographyUnit mapUnit)
        {
            ValidatorHelper.CheckObjectIsNotNull(layers, "layers");
            ValidatorHelper.CheckInputValueIsLargerThan(width, "width", 0, RangeCheckingInclusion.ExcludeValue);
            ValidatorHelper.CheckInputValueIsLargerThan(height, "height", 0, RangeCheckingInclusion.ExcludeValue);
            ValidatorHelper.CheckGeographyUnitIsValid(mapUnit, "mapUnit");
            ValidatorHelper.CheckExtentIsValid(currentExtent, "currentExtent");
            return Draw(layers, width, height, mapUnit, false);
        }
public GeoImage Draw ( IEnumerable < Layer > layers , int width , int height , GeographyUnit mapUnit ) { ValidatorHelper . CheckObjectIsNotNull ( layers , " " ) ; ValidatorHelper . CheckInputValueIsLargerThan ( width , " " , 0 , RangeCheckingInclusion . ExcludeValue ) ; ValidatorHelper . CheckInputValueIsLargerThan ( height , " " , 0 , RangeCheckingInclusion . ExcludeValue ) ; ValidatorHelper . CheckGeographyUnitIsValid ( mapUnit , " " ) ; ValidatorHelper . CheckExtentIsValid ( currentExtent , " " ) ; return Draw ( layers , width , height , mapUnit , false ) ; }
Draw a group of layers and return a new image with the specified width and height.
Draw a group of layers and return a new image with the specified width and height .
The resulting image after drawing the target layers based on the specified width and height.
The resulting image after drawing the target layers based on the specified width and height .
layers
IEnumerable<Layer>
This parameter specifies the target layers to be drawn.
This parameter specifies the target layers to be drawn .
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 .