---
title: "AviFrame..::.Transition Property "
canonical: https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_AviFrame_Transition.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/)

# AviFrame.Transition Property 
 
Gets/sets the transition effect calculator.
 
**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 Property Transition As AviTransition
```
 
```csharp
public AviTransition Transition { get; set; }
```
 
### Property Value
A class derived from [AviTransition](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_AviTransition.htm.md) which implements transition functionality.
 
## Remarks
  
AVI Processor has two standard transition effect calculation classes ([AviAlphaTransition](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_AviAlphaTransition.htm.md) and [AviStripesTransition](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_AviStripesTransition.htm.md)). If you want to create a custom transition effect, you can use the [AviCustomTransition](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_AviCustomTransition.htm.md) class. You can do it in two ways:
 
1. Add [DrawTransition](https://www.graphicsmill.com/docs/gm5/E_Aurigma_GraphicsMill_Codecs_AviCustomTransition_DrawTransition.htm.md) event handler.
2. Write a descendant class of [AviCustomTransition](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_AviCustomTransition.htm.md) and override the [OnDrawTransition(Bitmap, Bitmap, Bitmap, Int32, Int32)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_AviCustomTransition_OnDrawTransition_5_77f8c163.htm.md) method.

Both of them take the same arguments, among which there are two "key" frames (bitmaps) and a total number of intermediate frames. The implementations will also be similar.
 
If you want to stop applying effects when adding frames, set this property to **null**. Another way to do it is to set the [IntermediateFrameCount](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_AviFrame_IntermediateFrameCount.htm.md) property to **0**. The difference between these two approaches is that in the latter case frames will be displayed one after another without any delay.
   
## See Also

### Reference

- [AviFrame Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_AviFrame.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
