Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
Sybren
Posted - Nov 20 2012 : 14:48:03 Hi,
When I want to save the transition frames from a 'iettCubeRotateFromLeft' transition it shows the correct transition sequence (squeezing one bitmap, while 'unsqueezing' the other) but the colors of each intermediate bitmap appears to be completely unstable. Sometimes it appears as the colors are shown as negatives, and other strange coloring effects are shown. The beginning of a transition goes well, but after a few frames the colors seems to go wild.
I followed the example from the helpfile (except for the number of steps):
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 := 0 to 20 do begin // Transition levels from 0% to 100% TransLevel := i * 5;
When I select another transition effect (not iettCubeRotateFromLeft) then all colors remain correct in all saved transition bitmaps. Does anyone have any idea why the iettCubeRotateFromLeft (and FromRight, FromTop and FromBottom) transitions won't work using the above code?
thanks
Sybren
5 L A T E S T R E P L I E S (Newest First)
Sybren
Posted - Nov 24 2012 : 08:59:06 Nigel,
Works perfectly. Thanks!
Sybren
xequte
Posted - Nov 21 2012 : 22:03:28 Hi
We'll have a fix in the next update. In the meantime you can modify the source
procedure TIETransitionEffects.CreateBitmap(...);
begin
// New Lines
if (TransitionProgress = 0) or FFirstStep then
fCurrentView.assign(fSourceShot);
DestBitmap.width := fWidth;
ETC...
Posted - Nov 21 2012 : 13:57:14 I think I solved the issue (can I call it an issue)?
I used a newly created ImageEnView.Proc instead of using an ImageEnProc. I copied the code from the help file to this post, and did the same in my application, but changed the application with a lot of test lines when the issue occurred. Hence my copying from the help file in this post.
I changed the code back to ImageEnProc, and now it worked correctly with all the transitions. Apparently an ImageEnView.Proc won't work well with this particular transformation.
Hope it sheds a bit of light on a possible issue?
thx
Sybren
Sybren
Posted - Nov 21 2012 : 10:03:08 Hi Nigel,
Yes. When I show the transition in an ImageEnView 'live' on the screen it works correctly. I started this way, and then decided to save the full transition in a movie format. So I first wanted to see and check the individual bitmaps. Then I found the color changes. I then tested it with a randomly selected transition and these went just fine. Only the 4 CubeRotate transitions showed this recoloring effect.
thx for your support!
Sybren
xequte
Posted - Nov 21 2012 : 01:43:57 Hi Sybren
I assume when you perform the same transition with the same two images visually in a TImageEnView, then it works correctly?