IMG_CreateAnimationEncoder - Man Page

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

Synopsis

#include <SDL3_image/SDL_image.h>

IMG_AnimationEncoder * IMG_CreateAnimationEncoder(const char *file);

Description

These animation types are currently supported:

· ANI

· APNG

· AVIFS

· GIF

· WEBP

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

Function Parameters

file

the file where the animation will be saved.

Return Value

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

Availability

This function is available since SDL_image 3.4.0.

See Also

IMG_CreateAnimationEncoder_IO(3), IMG_CreateAnimationEncoderWithProperties(3), IMG_AddAnimationEncoderFrame(3), IMG_CloseAnimationEncoder(3)

Referenced By

IMG_AddAnimationEncoderFrame(3), IMG_CloseAnimationEncoder(3), IMG_CreateAnimationEncoder_IO(3), IMG_CreateAnimationEncoderWithProperties(3).

SDL_image 3.4.0 SDL_image3 FUNCTIONS