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 between0(lowest) and100(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 πΈ
IMG_SaveAVIF_IO(3)β the SEE ALSO reference, periodt. π
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
- ubuntu stonking: libsdl3-image-doc 3.4.4+ds-2 Β· zlib/libpng AND HPND-like AND zlib-like-permissive
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms