IMG_SaveICO(3)
πΎ IMG_SaveICO(3) β it's giving "save that surface as an ICO" energy π
okay bestie, welcome to the IMG_SaveICO page from the SDL_image3 FUNCTIONS manual. no cap, this one is short and sweet β it literally just yeets your SDL_Surface into an .ico file on disk. iconic behavior fr fr. β¨
πΈ NAME πΈ
IMG_SaveICO β save an SDL_Surface into a ICO image file. that's it, that's the whole job. π
π¦ SYNOPSIS π¦
#include <SDL3_image/SDL_image.h>
bool IMG_SaveICO(SDL_Surface *surface, const char *file);
π DESCRIPTION π
so like, if the file already exists? it gets overwritten. no warning, no "are you sure", no dramatic goodbye β it's gone, bestie. π«Ά
β¨ FUNCTION PARAMETERS β¨
surfaceβ theSDL_Surfaceyou wanna save. your little pixel baby. πΌοΈfileβ the path on the filesystem where the new file gets written. point it at where you want the ICO to live. π
π₯ RETURN VALUE π₯
returns true on success or false on failure. if it's a flop, call SDL_GetError() for more info β she'll tell you what went wrong. π
π AVAILABILITY π
this function is available since SDL_image 3.4.0. so if you're on something older, sorry babe, it's not there. π
π SEE ALSO π
IMG_SaveICO_IO(3)β the sibling, the main character's other half. go look. iykyk. π
lowkey reminder: it overwrites. back up your stuff if you're emotionally attached to it. π
that's the whole page, bestie β short, slay, and to the point. π
SDL_image version 3.4.8, page IMG_SaveICO(3), brought to you by the SDL_image girlies. mwah. ππ§ββοΈ
π¦ 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