Getting the frame duration of an animated GIF?

In C #, I can get individual frames from a gif and show the animation quite easily, but how are you going to get time information for each frame?

+5
source share
1 answer
PropertyItem item = img.GetPropertyItem (0x5100); // FrameDelay in libgdiplus
// Time is in milliseconds
delay = (item.Value [0] + item.Value [1] * 256) * 10;

This article may be helpful.

+11
source

All Articles