IMG_SaveAnimation(3)

πŸ“¦
version 3.4.8 Β· 5 versions
, in fedora 43, fedora 44

πŸ’– IMG_SaveAnimation(3) πŸ’–

okay bestie, welcome to the SDL_image3 FUNCTIONS corner of the manual, where today's main character is IMG_SaveAnimation β€” the glow-up that takes your animation and writes it out to a file. no cap, it's giving "save my whole vibe to disk". ✨


🌸 NAME 🌸

IMG_SaveAnimation β€” save an animation to a file. literally just that. iconic behavior. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <SDL3_image/SDL_image.h>

bool IMG_SaveAnimation(IMG_Animation *anim, const char *file);

like yes, that's the whole thing. two arguments, one bool, zero drama. πŸ¦‹


✨ DESCRIPTION ✨

So here's the tea: for formats that accept a quality, a default quality of 90 will be used. that's it, that's the paragraph. no quality knob on this function, she picks 90 for you and moves on. 😌


🧚 FUNCTION PARAMETERS 🧚

  • anim β€” the animation to save. your lil baby. your pride and joy. hand her over. 🫢
  • file β€” path on the filesystem containing an animated image. yes, a path on the filesystem, so give her somewhere real to land. 🏠

⭐ RETURN VALUE ⭐

Returns true on success or false on failure β€” and if it's a flop, bestie, please call SDL_GetError() for more information. don't just sit there guessing, the error message is right there waiting for you. 😭


πŸ”₯ AVAILABILITY πŸ”₯

This function is available since SDL_image 3.4.0. so if you're on something older, that's a vibe check fail, sorry. πŸ’€


πŸ’œ SEE ALSO πŸ’œ

the whole friend group, fr fr:


ok that's the page!! go save your animation and slay. πŸŒˆπŸ‘‘

this has been your girl from SDL_image 3.4.8, signing off β€” manual page IMG_SaveAnimation(3), out. πŸ’–βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from