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_CreateAnimationEncoder_IO

Create an encoder to save a series of images to an IOStream.

Header File

Defined in <SDL3_image/SDL_image.h>

Syntax

IMG_AnimationEncoder * IMG_CreateAnimationEncoder_IO(SDL_IOStream *dst, bool closeio, const char *type);

Function Parameters

SDL_IOStream * dst an SDL_IOStream that will be used to save the stream.
bool closeio true to close the SDL_IOStream when done, false to leave it open.
const char * type a filename extension that represent this data ("WEBP", etc).

Return Value

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

Remarks

If closeio is true, dst will be closed before returning if this function fails, or when the animation encoder is closed if this function succeeds.

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.