Subtitles.AdjustTimings Method (Int32, Int32, Int32, Int32)
Auto adjusts a range of subtitles given their first and last correct frames.
public
bool AdjustTimings(
int startIndex,
int startFrame,
int endIndex,
int endFrame);
Parameters
-
startIndex
- The subtitle index to start the adjustment with.
-
startFrame
- The correct start frame for the first subtitle.
-
endIndex
- The subtitle index to end the adjustment with.
-
endFrame
- The correct start frame for the last subtitle.
Return Value
Whether the subtitles could be adjusted.
Remarks
The subtitles are first shifted to the first subtitle's correct frame, and then proportionally adjusted using the last subtitle's correct frame.
See Also
Subtitles Class | SubLib Namespace | Subtitles.AdjustTimings Overload List