IMG_GetClipboardImage - Man Page

Get the image currently in the clipboard.

Synopsis

#include <SDL3_image/SDL_image.h>

SDL_Surface * IMG_GetClipboardImage(void);

Description

When done with the returned surface, the app should dispose of it with a call to SDL_DestroySurface().

Return Value

Returns a new SDL surface, or NULL if no supported image is available.

Availability

This function is available since SDL_image 3.4.0.

Info

SDL_image 3.4.0 SDL_image3 FUNCTIONS