Exemplo n.º 1
0
        // mapDisplay is a MapDisplay that contains the correct map. All other features of the map display need to be customized.
        public BitmapCreation(EventDB eventDB, SymbolDB symbolDB, Controller controller, MapDisplay mapDisplay,
                              BitmapCreationSettings bitmapCreationSettings, CourseAppearance appearance)
        {
            this.eventDB                = eventDB;
            this.symbolDB               = symbolDB;
            this.controller             = controller;
            this.mapDisplay             = mapDisplay.CloneToFullIntensity();
            this.bitmapCreationSettings = bitmapCreationSettings;
            this.appearance             = appearance;

            // Set default features for creating bitmaps.
            this.mapDisplay.MapIntensity = 1.0F;
            this.mapDisplay.AntiAlias    = true;
            this.mapDisplay.ColorModel   = bitmapCreationSettings.ColorModel;
        }
Exemplo n.º 2
0
        public BitmapCreationSettings Clone()
        {
            BitmapCreationSettings n = (BitmapCreationSettings)base.MemberwiseClone();

            return(n);
        }