IMG_ReadXPMFromArrayToRGB888
Load an XPM image from a memory array.
- Provided by: libsdl3-image-doc (Version: 3.4.0+ds-1)
- Source: libsdl3-image
- Report a bug
Load an XPM image from a memory array.
#include <SDL3_image/SDL_image.h>
SDL_Surface * IMG_ReadXPMFromArrayToRGB888(char **xpm);
The returned surface will always be a 32-bit RGB surface. If you want 8-bit indexed colors (and the XPM data allows it), use IMG_ReadXPMFromArray() instead.
When done with the returned surface, the app should dispose of it with a call to SDL_DestroySurface().
Returns a new SDL surface, or NULL on error.
This function is available since SDL_image 3.0.0.