---
title: "AviWriter..::.TimeToFrameIndex Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_AviWriter_TimeToFrameIndex_1_e1836fc4.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# AviWriter.TimeToFrameIndex Method 
 
Returns the index of the frame which occurs on the specified time.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill.Codecs.AviProcessor (in Aurigma.GraphicsMill.Codecs.AviProcessor.dll)
 
## Syntax
  
```
Public Function TimeToFrameIndex ( _time As Integer _
) As Integer
```
 
```csharp
public int TimeToFrameIndex(int time
)
```
 
### Parameters
 
 - time
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
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.
 
### Implements
 
[ITimeWriter.TimeToFrameIndex(Int32)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_ITimeWriter_TimeToFrameIndex_1_e1836fc4.htm.md)
 
## Remarks
  
This value is calculated on the basis of [FramesPerSecond](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_AviWriter_FramesPerSecond.htm.md) property.
 
If you need to make invert calculation - from frame index to timing, use the [FrameIndexToTime(Int32)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_AviWriter_FrameIndexToTime_1_e1836fc4.htm.md) method.
   
## See Also

### Reference

- [AviWriter Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_AviWriter.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
