Add Output of Distance and time to render

This commit is contained in:
glax 2024-07-23 17:07:44 +02:00
parent 0a522baba5
commit 954451978c

View File

@ -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!);