admin管理员组

文章数量:1346668

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.

本文标签: gtkIs it not possible to determine the number of frames in a GdkPixbufAnimationStack Overflow