Use with PrepareTransitionBitmaps to create a series of frames that transition from one bitmap to another.
Parameter
Description
TransitionProgress
The percentage that it is has progressed from the start image to the end image (ranging from 0.0 to 100.0)
DestBitmap
Will be filled with the created transition frame. It must be created before calling and will be automatically sized and set to 24 bit
Note: ◼This is only for creating transition bitmaps for external purposes. To show an image with a transition effect in ImageEn, use RunTransition ◼If DestBitmap is attached to a TImageEnView, it will automatically call Update
// Random transition from fully black to an image bmpOut := TIEBitmap.Create( 'D:\TestImage.jpg' ); bmpIn := TIEBitmap.Create( bmpOut.Width, bmpOut.Height, clBlack );
// Prepare transition trans := TIETransitionType( 1 + Random( ord( High( TIETransitionType )) - 2 )); // Random Transition ImageEnView1.Proc.PrepareTransitionBitmaps( bmpIn, bmpOut, trans );
// Get transition image ImageEnView1.Proc.CreateTransitionBitmap( percentage, ImageEnView1.IEBitmap );
// Create an AVI transitioning one image to another const Frames_Per_Second = 20; Display_Seconds = 5; var proc: TImageEnProc; io: TImageEnIO; startBitmap, endBitmap : TIEBitmap; i, frameCount: Integer; transLevel: Single; begin startBitmap := TIEBitmap.Create(); endBitmap := TIEBitmap.Create();
proc := TImageEnProc.Create( nil ); io := TImageEnIO.Create( nil ); try if io.CreateAVIFile('D:\Transition.avi', Frames_Per_Second, 'cvid' ) = ieaviNOCOMPRESSOR then raise Exception.create( 'This compressor is unavailable!' );