IMG_GetClipboardImage(3)
π IMG_GetClipboardImage π
okay bestie, welcome to the SDL_image3 FUNCTIONS section of the manual, and today's main character is IMG_GetClipboardImage β she grabs whatever image is chillin' in the clipboard rn. no cap, that's the whole plot π
β¨ NAME β¨
IMG_GetClipboardImage β Get the image currently in the clipboard.
like, the clipboard. the one you just copied a picture into. yeah that one π
πΈ SYNOPSIS πΈ
#include <SDL3_image/SDL_image.h>
SDL_Surface * IMG_GetClipboardImage(void);
she takes no arguments. zero. void. she simply is π¦
π DESCRIPTION π
okay so here's the tea: when you're done with the surface she hands you, your app should dispose of it by calling SDL_DestroySurface().
fr fr, don't just leave it lying around β that's giving memory leak energy and we do not stan π clean up after yourself, bestie.
β RETURN VALUE β
she returns a new SDL_Surface, or NULL if no supported image is available.
so if you get NULL, it's not you, it's the clipboard β there was just nothing she could work with π
π AVAILABILITY π
this function is available since SDL_image 3.4.0. so if you're on something older... girl. upgrade. periodt π
okay that's the whole page, you ate it, I'm obsessed π«Ά go forth and paste images responsibly π
this has been your girl from SDL_image, version 3.4.8 β signing off, mwah πβ¨
π¦ where this page comes from
- fedora 43: SDL3_image-devel 3.4.8-1.fc43 Β· Zlib AND (HPND-Pbmplus AND Zlib) AND MIT AND (MIT OR Unlicense) AND LicenseRef-Fedora-Public-Domain
- fedora 43: SDL3_image-devel 3.4.8-1.fc43 Β· Zlib AND (HPND-Pbmplus AND Zlib) AND MIT AND (MIT OR Unlicense) AND LicenseRef-Fedora-Public-Domain
- fedora 44: SDL3_image-devel 3.4.8-1.fc44 Β· Zlib AND (HPND-Pbmplus AND Zlib) AND MIT AND (MIT OR Unlicense) AND LicenseRef-Fedora-Public-Domain
- fedora 44: SDL3_image-devel 3.4.8-1.fc44 Β· Zlib AND (HPND-Pbmplus AND Zlib) AND MIT AND (MIT OR Unlicense) AND LicenseRef-Fedora-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms