ImageEn, unit imageenview |
|
TImageEnView.PlaySpeed
Declaration
property PlaySpeed: Double;
Description
Allows the playback speed of multiframe files (when
Playing is enabled) to be decreased or increased.
The default playback speed is set for each frame by the
ImageDelayTime time. To adjust the playback speed of all frames, you can set PlaySpeed, e.g. setting it to 2.0 will double playback speed (each frame will show half as long), whereas setting it to 0.5 will slow playback speed.
Note:
ImageDelayTime is a property of the image (set each time an image is loaded), so cannot be used to temporarily adjust playback (unless you save the image). PlaySpeed is a property of TImageEnView and remains as you have set it even when reloading
Default: 1
// Double the playback speed (faster animation)
ImageEnView1.PlaySpeed := 2.0;
// Halve the playback speed (slower animation)
ImageEnView1.PlaySpeed := 0.5;
// Show PDF files as 3 seconds per page (default time for PDF is 1 second. Assumes no custom IO.Params.ImageDelayTime has been set)
ImageEnView1.PlaySpeed := 1/3;
ImageEnView1.Playing := True;
ImageEnView1.Playing := True;
// Make each frame show for 1 second
ImageEnView1.PlaySpeed := ImageEnView1.IO.Params.ImageDelayTime / 1000;
ImageEnView1.Playing := True;
See Also
◼Playing◼PlayLoop