Beispiel #1
0
 private void draw_nodes()
 {
     foreach (var dnode in depot)
     {
         this.graphics.FillRectangle(brush, dnode.Rectangle);
     }
     foreach (var nnode in node)
     {
         this.graphics.FillRectangle(new SolidBrush((Color)ColorProgression.getColor(nnode.PriorityGroup)), nnode.Rectangle);
     }
 }
Beispiel #2
0
        public InstanceDrawing(InstanceGeneratorMain pinstanceGenerator, DrawingSettings pdrawingSettings)
        {
            this.instanceGenerator = pinstanceGenerator;
            this.drawingSettings   = pdrawingSettings;

            this.image = new Bitmap((int)(instanceGenerator.getInstanceConfig().x_dim *drawingSettings.board_radius_factor), (int)(instanceGenerator.getInstanceConfig().y_dim *drawingSettings.board_radius_factor));
            Color color = ColorProgression.getColor(OBJECT_COLOR.NEUTRAL_BLACK);

            this.pen      = new Pen(color);
            this.brush    = new SolidBrush(color);
            this.graphics = Graphics.FromImage(this.image);
        }