T O P I C R E V I E W |
PeterPanino |
Posted - Mar 16 2024 : 11:22:25 Please look at this small project:
attach/PeterPanino/2024316111631_GIFDelayTest.zip 282.45 KB
Please follow exactly these steps to reproduce the issue:
1. Load the DelayTest_200.GIF. It automatically plays after loading: All frames have a GIF Delay of 200.
2. Click the STOP button.
3. Now, in the EditGIFDelay control, enter a value of 5 (instead of 200).
4. Click the "All Frames" button. This sets the GIF_DelayTime of all Frames to 5.
5. Now click the PLAY button: Now the GIF should play much faster, as the GIF_DelayTime of all frames has changed.
But it is playing at the same slow 200 speed as before!
Is this a bug in TImageEnMView? |
2 L A T E S T R E P L I E S (Newest First) |
xequte |
Posted - Mar 16 2024 : 23:55:45 Hi Peter
If playback is in TImageEnMView, then TImageEnMView.ImageDelayTime specifies the playback time (which defaults to GIF_DelayTime for GIF files).
To change the playback time when viewing you should set TImageEnMView.ImageDelayTime. To change the playback time when saving you should set TIOParams.GIF_DelayTime (or TIOParams.ImageDelayTime).
- https://www.imageen.com/help/TImageEnMView.ImageDelayTime.html - https://www.imageen.com/help/TIOParams.GIF_DelayTime.html - https://www.imageen.com/help/TIOParams.ImageDelayTime.html
Nigel Xequte Software www.imageen.com
|
PeterPanino |
Posted - Mar 16 2024 : 16:10:06 I've found the solution:
The GIF_DelayTime value must be converted to an ImageDelayTime value to make it work at run-time. It appears that the GIF_DelayTime is relevant only when saving to a GIF file. Is that correct?
BTW, I would suggest to make this conversion automatic. I see no reason why it should not be automatic. |