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

AviFrame.Transition Property

Gets/sets the transition effect calculator.

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


Visual Basic
Public Property Transition As AviTransition
public AviTransition Transition { get; set; }

Property Value

A class derived from AviTransition which implements transition functionality.


AVI Processor has two standard transition effect calculation classes (AviAlphaTransition and AviStripesTransition). If you want to create a custom transition effect, you can use the AviCustomTransition class. You can do it in two ways:

  1. Add DrawTransition event handler.
  2. Write a descendant class of AviCustomTransition and override the OnDrawTransition(Bitmap, Bitmap, Bitmap, Int32, Int32) 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 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