最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

gtk - Is it not possible to determine the number of frames in a GdkPixbufAnimation? - Stack Overflow

programmeradmin2浏览0评论

I'm trying to figure out the number of frames in a GdkPixbufAnimation object. Since there doesn't seem to be a dedicated function that returns the number of frames, I thought I could just count the frames by repeatedly calling gdk_pixbuf_animation_iter_advance and increasing the timestamp passed to it by the return value of gdk_pixbuf_animation_iter_get_delay_time but this doesn't seem to work because normally animations will loop which means that gdk_pixbuf_animation_iter_advance will run forever.

Thus I was wondering whether it is possible to determine the number of frames in a GdkPixbufAnimation at all because I don't see any API that could provide this.

发布评论

评论列表(0)

  1. 暂无评论