Changeset 7842 for branches/HeuristicLab.TimeSeries/HeuristicLab.Problems.TravelingSalesman.Views/3.3/PathTSPTourView.cs
- Timestamp:
- 05/16/12 16:28:49 (12 years ago)
- Location:
- branches/HeuristicLab.TimeSeries
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.TimeSeries
- Property svn:mergeinfo changed
-
branches/HeuristicLab.TimeSeries/HeuristicLab.Problems.TravelingSalesman.Views/3.3/PathTSPTourView.cs
r7268 r7842 118 118 graphics.FillRectangle(Brushes.Red, points[i].X - 2, points[i].Y - 2, 6, 6); 119 119 } 120 } else { 121 using (Graphics graphics = Graphics.FromImage(bitmap)) { 122 graphics.Clear(Color.White); 123 Font font = new Font(FontFamily.GenericSansSerif, 12, FontStyle.Regular); 124 string text = "No coordinates defined or in wrong format."; 125 SizeF strSize = graphics.MeasureString(text, font); 126 graphics.DrawString(text, font, Brushes.Black, (float)(pictureBox.Width - strSize.Width) / 2.0f, (float)(pictureBox.Height - strSize.Height) / 2.0f); 127 } 120 128 } 121 129 pictureBox.Image = bitmap;
Note: See TracChangeset
for help on using the changeset viewer.