MapSuiteGisEditor/WpfDesktopExtension/Shares/MapEngine.cs
//TODO: On the threading front the idea we had was to put different layers
//  to draw on different threads.  For example we draw layer 1 on thread 1
// and layer two on thread 2.  Once thread one is free then we draw layer three.
//  We need to consider labels and other factors when doing this.
/// <summary>
/// Draw a group of layers on the specified "background" image.
/// </summary>
/// <param name="layers">This parameter specifies the target layers to be drawn.</param>
/// <param name="image">This parameter specifies the "background" image 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 target layers on the specified "background" image.</returns>
Draw a group of layers on the specified "background" image.
Draw a group of layers on the specified " background " image .
public GeoImage Draw(IEnumerable<Layer> layers, GeoImage image, GeographyUnit mapUnit)
        {
            ValidatorHelper.CheckObjectIsNotNull(layers, "layers");
            ValidatorHelper.CheckObjectIsNotNull(image, "image");
            ValidatorHelper.CheckGeographyUnitIsValid(mapUnit, "mapUnit");
            ValidatorHelper.CheckExtentIsValid(currentExtent, "currentExtent");
            Draw(layers, image.NativeImage, mapUnit, false);
            return image;
        }
public GeoImage Draw ( IEnumerable < Layer > layers , GeoImage image , GeographyUnit mapUnit ) { ValidatorHelper . CheckObjectIsNotNull ( layers , " " ) ; ValidatorHelper . CheckObjectIsNotNull ( image , " " ) ; ValidatorHelper . CheckGeographyUnitIsValid ( mapUnit , " " ) ; ValidatorHelper . CheckExtentIsValid ( currentExtent , " " ) ; Draw ( layers , image . NativeImage , mapUnit , false ) ; return image ; }
Draw a group of layers on the specified "background" image.
Draw a group of layers on the specified " background " image .
The resulting image after drawing the target layers on the specified "background" image.
The resulting image after drawing the target layers on the specified " background " image .
layers
IEnumerable<Layer>
This parameter specifies the target layers to be drawn.
This parameter specifies the target layers to be drawn .
image
GeoImage
This parameter specifies the "background" image of the returning image.
This parameter specifies the " background " image 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 .