.\" This manpage content is licensed under Creative Commons
.\"  Attribution 4.0 International (CC BY 4.0)
.\"   https://creativecommons.org/licenses/by/4.0/
.\" This manpage was generated from SDL_image's wiki page for IMG_SaveICO_IO:
.\"   https://wiki.libsdl.org/SDL_image/IMG_SaveICO_IO
.\" Generated with SDL/build-scripts/wikiheaders.pl
.\"  revision 3.3.4+ds-2
.\" Please report issues in this manpage's content at:
.\"   https://github.com/libsdl-org/sdlwiki/issues/new
.\" Please report issues in the generation of this manpage from the wiki at:
.\"   https://github.com/libsdl-org/SDL/issues/new?title=Misgenerated%20manpage%20for%20IMG_SaveICO_IO
.\" SDL_image can be found at https://libsdl.org/projects/SDL_image
.de URL
\$2 \(laURL: \$1 \(ra\$3
..
.if \n[.g] .mso www.tmac
.TH IMG_SaveICO_IO 3 "SDL_image 3.3.4" "SDL_image" "SDL_image3 FUNCTIONS"
.SH NAME
IMG_SaveICO_IO \- Save an SDL_Surface into ICO image data, via an SDL_IOStream\[char46]
.SH SYNOPSIS
.nf
.B #include <SDL3_image/SDL_image.h>
.PP
.BI "bool IMG_SaveICO_IO(SDL_Surface *surface, SDL_IOStream *dst, bool closeio);
.fi
.SH DESCRIPTION
If you just want to save to a filename, you can use
.BR IMG_SaveICO ()
instead\[char46]
.PP
If
.BR closeio
is true,
.BR dst
will be closed before returning, whether this function succeeds or not\[char46]

.SH FUNCTION PARAMETERS
.TP
.I surface
the SDL surface to save\[char46]
.TP
.I dst
the SDL_IOStream to save the image data to\[char46]
.TP
.I closeio
true to close/free the SDL_IOStream before returning, false to leave it open\[char46]
.SH RETURN VALUE
Returns true on success or false on failure; call SDL_GetError() for more information\[char46]

.SH AVAILABILITY
This function is available since SDL_image 3\[char46]4\[char46]0\[char46]

.SH SEE ALSO
.BR IMG_SaveICO (3)
