SubLib Subtitle Library

Synchronization.TimeToFrames Method (TimeSpan, Single)

Converts the specified time to frames, given a frame rate.

public static double TimeToFrames(
   TimeSpan time,
   float frameRate
);

Parameters

time
The time to convert to frames.
frameRate
The frame rate to be used in the conversion.

Return Value

The frames corresponding to the specified time at the specified frame rate.

See Also

Synchronization Class | SubLib Namespace | Synchronization.TimeToFrames Overload List