SubLib Subtitle Library

Subtitles.AdjustTimings Method (Int32, Int32)

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

public bool AdjustTimings(
   int startFrame,
   int endFrame
);

Parameters

startFrame
The correct start frame for the first subtitle.
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