SubLib Subtitle Library

Subtitles.AdjustTimings Method (TimeSpan, TimeSpan)

Auto adjusts the subtitles given the correct times for the first and last subtitle.

public bool AdjustTimings(
   TimeSpan startTime,
   TimeSpan endTime
);

Parameters

startTime
The correct start time for the first subtitle.
endTime
The correct start time for the last subtitle.

Return Value

Whether the subtitles could be adjusted.

Remarks

The subtitles are first shifted to the first subtitle's correct time, and then proportionally adjusted using the last subtitle's correct time.

See Also

Subtitles Class | SubLib Namespace | Subtitles.AdjustTimings Overload List