Get and set image from and to clipboard?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
NetherGranite
Prole
Posts: 30
Joined: Wed Jul 11, 2018 11:08 pm

Get and set image from and to clipboard?

Post by NetherGranite »

There are functions available for getting and setting text from and to the clipboard, but is there similar functionality for images? If not, is there a hacky way to do it?
User avatar
zorg
Party member
Posts: 3444
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Get and set image from and to clipboard?

Post by zorg »

Well, you can make it work at least one way, from löve to the clipboard; there's a function to convert an image into a string.
That said, it may contain chars that aren't printable so it may or may not work.

That said, i think at least windows has separate clipboard space for different types of data? Not sure if SDL'd be able to access the non-text ones :v
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 5 guests