SubLib Subtitle Library

Synchronization.TimeToFrames Method (Single, Single)

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

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

Parameters

time
The time, in seconds, 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