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

AviCustomTransition.OnDrawTransition Method

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)

Syntax

Visual Basic
Public Overridable Sub OnDrawTransition ( _
	previousBitmap As Bitmap, _
	resultBitmap As Bitmap, _
	nextBitmap As Bitmap, _
	intermediateFrameIndex As Integer, _
	intermediateFrameCount As Integer _
)
C#
public virtual void OnDrawTransition(
	Bitmap previousBitmap,
	Bitmap resultBitmap,
	Bitmap nextBitmap,
	int intermediateFrameIndex,
	int intermediateFrameCount
)

Parameters

previousBitmap

Type: Aurigma.GraphicsMill.Bitmap

Bitmap object which specifies the previous key frame.
resultBitmap

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.
nextBitmap

Type: Aurigma.GraphicsMill.Bitmap

Bitmap object which specifies the next key frame.
intermediateFrameIndex

Type: System.Int32

An index of the current intermediate frame.
intermediateFrameCount

Type: System.Int32

Total count of intermediate frames.

Remarks

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.

See Also

Reference