Hi Keith
Yes, see:
http://www.imageen.com/help/TImageEnProc.PrepareTransitionBitmaps.html
http://www.imageen.com/help/TImageEnProc.PrepareTransitionBitmapsEx.html
http://www.imageen.com/help/TImageEnProc.CreateTransitionBitmap.html
Example
procedure TransitionFrameCreationExample;
var
OldBitmap, NewBitmap, TransBitmap : TBitmap;
I : Integer;
TransLevel : Single;
begin
OldBitmap := TBitmap.Create;
NewBitmap := TBitmap.Create;
TransBitmap := TBitmap.Create;
try
OldBitmap.LoadFromFile('C:\OldImage.bmp');
NewBitmap.LoadFromFile('C:\NewImage.bmp');
// Call PrepareTransitionBitmaps once
ImageEnProc.PrepareTransitionBitmaps(OldBitmap, NewBitmap, iettCrossDissolve);
for i := 1 to 9 do
begin
// Transition levels from 10% to 90%
TransLevel := i * 10;
// Call CreateTransitionBitmap for each required frame
ImageEnProc.CreateTransitionBitmap(TransLevel, TransBitmap);
TransBitmap.SaveToFile('C:\TransImage' + IntToStr(I) + '.bmp');
end;
finally
OldBitmap.Free;
NewBitmap.Free;
TransBitmap.Free;
end;
end;
Nigel
Xequte Software
www.xequte.com
nigel@xequte.com