###### (This function is part of SDL_image, a separate library from SDL.) # IMG_Animation Animated image support ## Header File Defined in [<SDL_image.h>](https://github.com/libsdl-org/SDL_image/blob/SDL2/include/SDL_image.h) ## Syntax ```c typedef struct IMG_Animation { int w; /**< The width of the frames */ int h; /**< The height of the frames */ int count; /**< The number of frames */ SDL_Surface **frames; /**< An array of frames */ int *delays; /**< An array of frame delays, in milliseconds */ } IMG_Animation; ``` ## Remarks Currently only animated GIFs and WEBP images are supported. ---- [CategoryAPI](CategoryAPI), [CategoryAPIStruct](CategoryAPIStruct)