From 954451978cf4c0c05ad67d06894f5c291559c14b Mon Sep 17 00:00:00 2001 From: glax Date: Tue, 23 Jul 2024 17:07:44 +0200 Subject: [PATCH] Add Output of Distance and time to render --- Graph_Renderer/Renderer.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Graph_Renderer/Renderer.cs b/Graph_Renderer/Renderer.cs index 6343f7e..b06be19 100644 --- a/Graph_Renderer/Renderer.cs +++ b/Graph_Renderer/Renderer.cs @@ -57,6 +57,8 @@ public static class Renderer Point endCoordinates = PixelCoordinatesFromGeoCoordinates(step.Node2, minCoordinates, multiplier, bitmap.Height); graphics.DrawLine(route, startCoordinates, endCoordinates); } + + graphics.DrawString($"Distance: {r.Distance:000000.00}m\nTime: {r.Time:hh\\:mm\\:ss}", new Font(FontFamily.GenericMonospace, 18), new SolidBrush(Color.White), 2, 2); } Directory.CreateDirectory(new FileInfo(outputPath).DirectoryName!);