Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是由前面的问题引起的。显然ImageList不支持动画 GIF,所以我坚持自己制作动画。
ImageList
我知道如何提取帧,但有人知道如何从动画 GIF中提取帧时间信息吗?
您可以使用对 的调用来获取当前帧(已调用SelectActiveFrame)的持续时间Image.GetPropertyItem,如下所示:
SelectActiveFrame
Image.GetPropertyItem
var duration = image.GetPropertyItem(0x5100).Value;
我相信持续时间值是以 1/100 秒为单位测量的。