---
title: "AviDrawTransitionEventArgs Constructor "
canonical: https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_Codecs_AviDrawTransitionEventArgs_ctor_5_f00d8675.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/)

# AviDrawTransitionEventArgs Constructor 
 
Creates and initializes new [AviDrawTransitionEventArgs](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_AviDrawTransitionEventArgs.htm.md) instance.
 
**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 Sub New ( _previousBitmap As Bitmap, _resultBitmap As Bitmap, _nextBitmap As Bitmap, _intermediateFrameIndex As Integer, _intermediateFrameCount As Integer _
)
```
 
```csharp
public AviDrawTransitionEventArgs(Bitmap previousBitmap,Bitmap resultBitmap,Bitmap nextBitmap,int intermediateFrameIndex,int intermediateFrameCount
)
```
 
### Parameters
 
 - previousBitmap
     - Type: [Aurigma.GraphicsMill.Bitmap](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md)
 [Bitmap](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md) object which specifies the previous key frame.

 - resultBitmap
     - Type: [Aurigma.GraphicsMill.Bitmap](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md)
 [Bitmap](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md) object which should contain the result. This bitmap already has the necessary size and there is no need to reinitialize it. You should draw the result of *previousBitmap* and *nextBitmap* combine.

 - nextBitmap
     - Type: [Aurigma.GraphicsMill.Bitmap](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md)
 [Bitmap](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md) object which specifies the next key frame.

 - intermediateFrameIndex
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
An index of the current intermediate frame.

 - intermediateFrameCount
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
Total count of intermediate frames.
   
## See Also

### Reference

- [AviDrawTransitionEventArgs Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_AviDrawTransitionEventArgs.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
