IMG_LoadICO_IO(3)

IMG_LoadICO_IO3

Load a ico image directly.

Usage

#include "SDL3_image/SDL_image.h"

SDL_Surface * IMG_LoadICO_IO(SDL_IOStream *src);

Header file

Defined in SDL3_image/SDL_image.h

Overview

If you know you definitely have a ICO image, you can call this function, which will skip SDL_image's file format detection routines. Generally it's better to use the abstract interfaces; also, there is only an SDL_IOStream interface available here.

Function parameters

src

an SDL_IOStream to load image data from.

Return value

Returns SDL surface, or NULL on error.

Availability

This function is available since SDL_image 3.0.0.

From libsdl3-image-doc 3.2.4+ds-1+deb13u1 in Debian 13 (Trixie). Parsed by carta from the page's man source.