获取动画GIF的帧持续时间?

And*_*ndy 6 .net c# animated-gif

在C#中,我可以从gif中获取单个帧并且足够容易地显示动画,但是如何获取每帧的时序信息?

Den*_*sky 12

PropertyItem item = img.GetPropertyItem (0x5100); // FrameDelay in libgdiplus
// Time is in milliseconds
delay = (item.Value [0] + item.Value [1] * 256) * 10;
Run Code Online (Sandbox Code Playgroud)

这篇文章可能很有用.