SDL Wiki
[ front page | index | search | recent changes | git repo | offline html ]
(This function is part of SDL_image, a separate library from SDL.)

IMG_GetClipboardImage

Get the image currently in the clipboard.

Header File

Defined in <SDL3_image/SDL_image.h>

Syntax

SDL_Surface * IMG_GetClipboardImage(void);

Return Value

(SDL_Surface *) Returns a new SDL surface, or NULL if no supported image is available.

Remarks

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

Version

This function is available since SDL_image 3.4.0.


CategoryAPI, CategoryAPIFunction, CategorySDLImage


[ edit | delete | history | feedback | raw ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.