Free cookie consent management tool by TermsFeed Policy Generator

Changeset 13716


Ignore:
Timestamp:
03/18/16 12:45:27 (9 years ago)
Author:
bburlacu
Message:

#1265: Added option to select the SmoothingMode in the ChartControl. Introduced a LabeledPrimitive which encapsulates a RectangularPrimitiveBase primitive and supports drawing a text label on top of it.
Introduced a set of useful methods in the PrimitiveUtil class for calculating intersection points between linear and rectangular primitives (useful for connecting shapes together).

Location:
branches/HeuristicLab.Visualization/HeuristicLab.Visualization/3.3
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Visualization/HeuristicLab.Visualization/3.3/ChartControl.cs

    r13132 r13716  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2424using System.ComponentModel;
    2525using System.Drawing;
     26using System.Drawing.Drawing2D;
    2627using System.Drawing.Imaging;
    2728using System.Linq;
     
    7374    }
    7475
     76    public SmoothingMode SmoothingMode { get; set; } = SmoothingMode.None;
     77
    7578    public bool ScaleOnResize { get; set; }
    7679
     
    358361          Picture = new Bitmap(pictureBox.Width, pictureBox.Height);
    359362          using (var graphics = Graphics.FromImage(Picture)) {
     363            graphics.SmoothingMode = SmoothingMode;
    360364            graphics.SetClip(new System.Drawing.Rectangle(0, 0, pictureBox.Width, pictureBox.Height));
    361365            Chart.Render(graphics, pictureBox.Width, pictureBox.Height);
  • branches/HeuristicLab.Visualization/HeuristicLab.Visualization/3.3/HeuristicLab.Visualization-3.3.csproj

    r13493 r13716  
    135135    <Compile Include="PrimitiveAttribute.cs" />
    136136    <Compile Include="Primitives\Grid.cs" />
     137    <Compile Include="Primitives\LabeledPrimitive.cs" />
     138    <Compile Include="Primitives\PrimitiveUtil.cs" />
    137139    <Compile Include="Properties\Resources.Designer.cs">
    138140      <AutoGen>True</AutoGen>
Note: See TracChangeset for help on using the changeset viewer.