Declaration
property GIF_DelayTime: integer;
Description
Specifies the period (in 1/100th sec) for which the current frame remains shown.
Note:
◼Generic access to frame display time is available with
ImageDelayTime.
◼When loading to
TImageEnView,
ImageDelayTime will be automatically filled with this value.
Default: 0
| Demos\ImageEditing\AnimatedGIF\AnimatedGIF.dpr |
ImageEnView1.IO.Params.GIF_DelayTime := 10; // Set current frame to display for 1/10th of a second
// Create an animated GIF file from ten source images
mbmp := TIEMultiBitmap.Create();
for i := 0 to 9 do
begin
mbmp.AppendImage( format( 'D:\Source\Frame %d.bmp', [i] ));
mbmp.Params[i].GIF_DelayTime := 10; // Display each frame for 1/10th of a second
end;
mbmp.SaveToFile( 'D:\animated.gif' );
mbmp.Free;