Changeset 11245 for branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Problems.Orienteering.Views/3.3/OrienteeringSolutionView.cs
- Timestamp:
- 07/30/14 16:37:39 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Problems.Orienteering.Views/3.3/OrienteeringSolutionView.cs
r11240 r11245 84 84 var bitmap = new Bitmap(pictureBox.Width, pictureBox.Height); 85 85 86 if ((coordinates != null) && (coordinates.Rows > 0) && (coordinates.Columns == 2)) { 86 if ((coordinates != null) && (coordinates.Rows > 0) && (coordinates.Columns == 2) 87 && (scores != null) && (coordinates.Rows == scores.Length)) { 87 88 double xMin = double.MaxValue, yMin = double.MaxValue, xMax = double.MinValue, yMax = double.MinValue; 88 89 for (int i = 0; i < coordinates.Rows; i++) { … … 116 117 for (int i = 0; i < points.Length; i++) { 117 118 double score = scores[i]; 118 int size = (int)Math.Round(((score - scoreMin) / scoreRange) * 9 + 1);119 int size = (int)Math.Round(((score - scoreMin) / scoreRange) * 8 + 2); 119 120 graphics.FillRectangle(Brushes.Red, points[i].X - size / 2, points[i].Y - size / 2, size, size); 120 121 }
Note: See TracChangeset
for help on using the changeset viewer.