IMG_SaveAPNGAnimation_IO(3)
π IMG_SaveAPNGAnimation_IO π
okay bestie, welcome to the SDL_image3 FUNCTIONS section of the manual, and today's main character is IMG_SaveAPNGAnimation_IO β the one that takes your lil animation and yeets it out as an APNG, straight into an SDL_IOStream. no cap. π¦
β¨ NAME β¨
IMG_SaveAPNGAnimation_IO β save an animation in APNG format to an SDL_IOStream.
πΈ SYNOPSIS πΈ
#include <SDL3_image/SDL_image.h>
bool IMG_SaveAPNGAnimation_IO(IMG_Animation *anim, SDL_IOStream *dst, bool closeio);
π DESCRIPTION π
so here's the tea, bestie: if closeio is true, then dst gets closed before returning β and that happens whether this function succeeds or not. like, it's closing that stream no matter what. iconic commitment to closure, honestly. π
π«Ά FUNCTION PARAMETERS π«Ά
animβ the animation you wanna save. your lil masterpiece. your baby. πdstβ anSDL_IOStreamthat data will be written to. (yes the docs say "from which data will be written to" β we don't question the ancestors, we just pass the stream, okay? π₯΄)closeioβtrueto close/free theSDL_IOStreambefore returning,falseto leave it open. pick your fighter. β¨
β RETURN VALUE β
Returns true on success or false on failure. and if it fails? call SDL_GetError() for more info, bestie, it'll tell you what went wrong. no guessing games. π
π AVAILABILITY π
This function is available since SDL_image 3.4.0. so if you're on something older, sorry babes, it's giving nonexistent. π
π SEE ALSO π
IMG_SaveAnimation(3)IMG_SaveAnimationTyped_IO(3)IMG_SaveANIAnimation_IO(3)IMG_SaveAVIFAnimation_IO(3)IMG_SaveGIFAnimation_IO(3)IMG_SaveWEBPAnimation_IO(3)
and that's the whole page, bestie!! π§ this lil slice of wisdom comes to you from SDL_image, version 3.4.8, living its best life in the SDL_image manual. go forth and save those animations. slay. ππΈβ¨
π¦ where this page comes from
- fedora 43: SDL3_image-devel 3.4.8-1.fc43 Β· Zlib AND (HPND-Pbmplus AND Zlib) AND MIT AND (MIT OR Unlicense) AND LicenseRef-Fedora-Public-Domain
- fedora 43: SDL3_image-devel 3.4.8-1.fc43 Β· Zlib AND (HPND-Pbmplus AND Zlib) AND MIT AND (MIT OR Unlicense) AND LicenseRef-Fedora-Public-Domain
- fedora 44: SDL3_image-devel 3.4.8-1.fc44 Β· Zlib AND (HPND-Pbmplus AND Zlib) AND MIT AND (MIT OR Unlicense) AND LicenseRef-Fedora-Public-Domain
- fedora 44: SDL3_image-devel 3.4.8-1.fc44 Β· Zlib AND (HPND-Pbmplus AND Zlib) AND MIT AND (MIT OR Unlicense) AND LicenseRef-Fedora-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms