2010-09-24 91 views

回答

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

This本文可能有用。

+0

澄清:GIF以s/100存储间隔。变量'delay'包含以毫秒为单位的时间间隔。 – Kempeth 2018-01-30 07:44:59