IMG_SaveAVIF(3)

πŸ’Ύ NAME πŸ’Ύ

IMG_SaveAVIF(3) β€” hiii bestie, this is the IMG_SaveAVIF page, living its best life in the SDL_image3 FUNCTIONS section. πŸ’…

IMG_SaveAVIF β€” Save an SDL_Surface into a AVIF image file. ✨

🌈 SYNOPSIS 🌈

#include <SDL3_image/SDL_image.h>

bool IMG_SaveAVIF(SDL_Surface *surface, const char *file, int quality);

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so real talk: if the file already exists, it will be overwritten. That's the whole description, and yes, it's giving "we're not asking, we're replacing." πŸ’€

πŸŽ€ FUNCTION PARAMETERS πŸŽ€

  • surface β€” the SDL surface to save. 🫢
  • file β€” path on the filesystem to write new file to. πŸ“
  • quality β€” the desired quality, ranging between 0 (lowest) and 100 (highest). πŸ”₯

⭐ RETURN VALUE ⭐

Returns true on success or false on failure; call SDL_GetError() for more information. No cap, that's your success check. βœ…πŸ˜­

πŸ’œ AVAILABILITY πŸ’œ

This function is available since SDL_image 3.0.0. πŸ‘‘

🌸 SEE ALSO 🌸


That's the whole page, bestie: brought to you by SDL_image version 3.4.4. The footer didn't hand me a date, so I'm not inventing one β€” consider this your cute sign-off with zero fake calendar tea. 🫢✨

πŸ“¦ where this page comes from