I don't know about other platforms, but on linux the clipboard is implemented in this 8kloc C file https://github.com/pharo-project/pharo-vm/blob/e0ce2d9d78c3c7b37bbc12cd8730c... e.g. getting the selection https://github.com/pharo-project/pharo-vm/blob/d06aa80a38bc1b6d1f4cc54301eca...
From the comments around the code I gather that the author(s) were aware that images can be copied around in clipboard. Whether it actually works I do no know.
(it would be if the clipboard-related code wrote itself into a nice separate file/plugin :)) Peter On Thu, Jun 15, 2017 at 4:00 PM, Hilaire <hilaire@drgeo.eu> wrote:
Hi,
A Dr. Geo user asked me about copying a DrGeo canvas view in the system clipboard, to past it in other tools as a text writer or any other editing tool.
I looked in Pharo3 and Pharo6, I found text clipboard operation but it is not clear if there is support for other format?
What about primAddClipboardData:data:dataFormat:
I would like to copy and paste the DrGeo canvas as PNG content.
-- Dr. Geo http://drgeo.eu