# DriverGapToLeaderWindow.cs ``` cs /// Author : Maxime Rohmer /// Date : 30/05/2023 /// File : DriverGapToLeaderWindow.cs /// Brief : Window containing infos about the gap to the leader of a driver /// Version : Alpha 1.0 using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TrackTrends { public class DriverGapToLeaderWindow:Window { public DriverGapToLeaderWindow(Bitmap image, Rectangle bounds, bool generateEngine = true) : base(image, bounds,generateEngine) { Name = "GapToLeader"; } /// /// Decodes the gap to leader using Tesseract OCR /// /// Returns the gap to the leader in miliseconds (int) public override object DecodePng() { int result = GetTimeFromPng(WindowImage, OcrImage.WindowType.Gap, Engine); return result; } } } ```