This documentation is for the old version. Go to the latest Graphics Mill docs

AviReader.TimeToFrameIndex Method

Returns the index of the frame which occurs on the specified time.

Namespace: Aurigma.GraphicsMill.Codecs
Assembly: Aurigma.GraphicsMill.Codecs.AviProcessor (in Aurigma.GraphicsMill.Codecs.AviProcessor.dll)

Syntax

Visual Basic
Public Function TimeToFrameIndex ( _
	time As Integer _
) As Integer
C#
public int TimeToFrameIndex(
	int time
)

Parameters

time

Type: System.Int32

An integer value which contains time from the beginning of the movie. As all other time units in Graphics Mill, this value is measured in 1/100 of seconds.

Return Value

An index of the frame which corresponds the timing specified by the time argument.

Remarks

This value is calculated on the basis of FramesPerSecond property.

If you need to make invert calculation - from frame index to timing, use the FrameIndexToTime(Int32) method.

See Also

Reference