IMG_SaveICO_IO(3)
π IMG_SaveICO_IO π
okay bestie, welcome to the SDL_image3 function zone β¨ this one lives in the IMG_SaveICO_IO(3) era of your life and it's literally about yeeting an SDL_Surface out into ICO image data through an SDL_IOStream π
πΈ NAME πΈ
IMG_SaveICO_IO β save an SDL_Surface into ICO image data, via an SDL_IOStream π¦
β¨ SYNOPSIS β¨
#include <SDL3_image/SDL_image.h>
bool IMG_SaveICO_IO(SDL_Surface *surface, SDL_IOStream *dst, bool closeio);
π DESCRIPTION π
so like, if you're just trying to save to a filename and you don't wanna deal with streams at all? bestie, use IMG_SaveICO() instead, that's the whole vibe π«Ά
and here's the tea you actually need to clock: if closeio is true, then dst gets closed before returning β and it does that whether this function succeeds or not. no cap. success, failure, doesn't matter, it's getting closed π
π FUNCTION PARAMETERS π
surfaceβ theSDL_Surfaceyou wanna save, bestie. that's the one.dstβ theSDL_IOStreamyou're saving the image data into π₯closeioβtrueif you want theSDL_IOStreamclosed/freed before returning,falseif you want it left open. your call, main character π
π RETURN VALUE π
returns true on success or false on failure π and if it's giving failure, call SDL_GetError() for more info, that's where the receipts live π§Ύ
β AVAILABILITY β
this function is available since SDL_image 3.4.0 π so if you're on anything older, sorry babe, it's not there yet.
π SEE ALSO π
and that's the whole page fr fr π sending you off with the classic: this was SDL_image, version SDL_image 3.4.8, straight from the SDL_image man pages β mwah, go save some icons bestie π πΈ
π¦ 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