I mean just like when you copy an image selection, or an online pic, or take a screenshot.
I just need a function that uses the filepath to get the image ready to be pasted on editors.
My searches only resulted in functions related to copying files either directly to the destination, or copying only the filepath.
Edit: found a solution using the gdip library:
ImgToClipboard(imagepath){ pToken := Gdip_Startup() Gdip_SetBitmapToClipboard(pBitmap := Gdip_CreateBitmapFromFile(imagepath)) Gdip_DisposeImage(pBitmap) Gdip_Shutdown(pToken) }