Is there a way to load a picture from clipboar?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By gruen

im wondering if there is a way to load a picture from clipboard (windows), to edit it.
its not a game its a program to screenshot the desktop and edit the picture to just show a part, or to marker some areas.

and since godot was also written in gdscript i thought i could try to build an screenshotmanager

annyway, im wondering if there is a way to load the picture from clipboard into godotgame.

and since godot was also written in gdscript i thought i could try to build an screenshotmanager

Godot itself doesn’t use any GDScript code. The editor is a Godot “game” written in C++ using the engine APIs.

Calinou | 2019-05-21 17:30

:bust_in_silhouette: Reply From: path9263

I have not tested it but there is a way to get what the clipboard contains. Not sure what it will give you if you have an image in the clipboard though.

OS.get_clipboard()