Cimg.h and Visual Studio

I have decided to take the task to myself, and attempt to implement clipboard support for G’MIC.

Right now, I’m looking at this:

It seems grayed out. I think what I need to do is to enable CMake support within Visual Studio, and somehow get the library, so I can understand how this works.

My plan is to make #ifdef cimg_use_clip , and utilize this library - GitHub - dacap/clip: Cross-platform C++ library to copy/paste clipboard content . It apparently has X11 support too.

In addition, if I can succeed at above, I might try to make 3 new commands called clipboard, clipboard_it,clipboard_ib.

clipboard inserts a new image from the clipboard.
clipboard_it inserts a new image as if it was pasted via text. Like it, but with clipboard.
clipboard_ib is the same as above, but for bytes.

The motivation to do this, to enable not to have to rely on Python for development purpose, allow a few more commands to exist. I have a few ideas with this.

I know about this:

#@cli screen : _x0[%],_y0[%],_x1[%],_y1[%] : (+)
#@cli : Take screenshot, optionally grabbed with specified coordinates, and insert it
#@cli : at the end of the image list.

Seems to use Cimg::Display