This method is called each time when it is necessary to generate new frame. You should override it to create a custom transition effect.
Namespace:
Aurigma.GraphicsMill.Codecs
Assembly:
Aurigma.GraphicsMill.Codecs.AviProcessor (in Aurigma.GraphicsMill.Codecs.AviProcessor.dll)
Public Overridable Sub OnDrawTransition ( _ previousBitmap As Bitmap, _ resultBitmap As Bitmap, _ nextBitmap As Bitmap, _ intermediateFrameIndex As Integer, _ intermediateFrameCount As Integer _ )
public virtual void OnDrawTransition( Bitmap previousBitmap, Bitmap resultBitmap, Bitmap nextBitmap, int intermediateFrameIndex, int intermediateFrameCount )
Type: Aurigma.GraphicsMill.Bitmap
Bitmap object which specifies the previous key frame.Type: Aurigma.GraphicsMill.Bitmap
Bitmap 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.Type: Aurigma.GraphicsMill.Bitmap
Bitmap object which specifies the next key frame.Type: System.Int32
An index of the current intermediate frame.Type: System.Int32
Total count of intermediate frames.To implement your custom transition you should override this method. Use intermediateFrameIndex and intermediateFrameCount to calculate the degree of the next frame domination (e.g. you can use it as opacity of the next frame). After that combine the previousBitmap and nextBitmap in the way you need and draw the result to the resultBitmap.
No need to call this method directly.