Image API

Updated: October 26, 2022

The image API includes the functions and data types described here.

To use the functionalities that this image API offers, along with the data types and functions in here, you need to open an I/O stream, which is managed by the io_open() and io_close() functions. The io_open() is used to associate an io_stream_t value with image data (a file, TCIP/IP socket, or memory buffer). The io_close() function releases the input stream and frees resources. Since the io_open() and io_close() are not part of the <img.h> header, you need to include the <io/io.h> header file, which includes the <img.h> header file within it. Therefore, to work with the image API, you can simply include the <io/io.h> header file.