SDL Wiki
[ front page | index | search | recent changes | git repo | offline html ]
(This function is part of SDL_image, a separate library from SDL.)

IMG_CreateAnimationStream

Create an animation stream and save it to a file.

Header File

Defined in <SDL3_image/SDL_image.h>

Syntax

IMG_AnimationStream * IMG_CreateAnimationStream(const char *file);

Function Parameters

const char * file the file where the animation will be saved.

Return Value

(IMG_AnimationStream *) Returns a new IMG_AnimationStream, or NULL on failure; call SDL_GetError() for more information.

Remarks

The file type is determined from the file extension, e.g. "file.webp" will be encoded using WEBP.

Version

This function is available since SDL_image 3.4.0.

See Also


CategoryAPI, CategoryAPIFunction, CategorySDLImage


[ edit | delete | history | feedback | raw ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.