PurplePen.MapDisplay.CloneToFullIntensity C# (CSharp) Method

CloneToFullIntensity() public method

public CloneToFullIntensity ( ) : MapDisplay
return MapDisplay
        public MapDisplay CloneToFullIntensity()
        {
            MapDisplay newMapDisplay = (MapDisplay)MemberwiseClone();

            newMapDisplay.dimmedBitmap = null;         // clones should not share dimmed bitmaps.
            newMapDisplay.mapIntensity = 1;

            return newMapDisplay;
        }

Usage Example

 public ExportRouteGadget(SymbolDB symbolDB, EventDB eventDB, MapDisplay mapDisplay)
 {
     this.symbolDB = symbolDB;
     this.eventDB = eventDB;
     this.mapDisplay = mapDisplay.CloneToFullIntensity();
     this.mapDisplay.SetCourse(null);
     this.mapDisplay.SetPrintArea(null);
 }
All Usage Examples Of PurplePen.MapDisplay::CloneToFullIntensity