Hi,
I was wondering if anyone might have a pointer to some cross-pllatform (Windows, macOS) lightweight API or other code to perform a screen capture.
Without going in too much details I am looking to develop a plugin where it might come handy to take a screen shot. Not only of the 3D viewport (as this could be achieved via the BaseDraw
and its EditorWindow
.), but preferably the entire desktop.
I have looked at a possible solution using GDI, but this is Windows only. And not being an expert in macOS development I have no idea regarding available graphic frameworks (cocoa, metal, ?)
Any help would be appreciated.
Thanks in advance,
Daniel
EDIT:
I noticed there is a void* GetEditorWindow(void)
available in c4d_bitmapfilter.h which according to this post in the legacy forum could be casted to an HWND. This might be helpful to get me started with Win32 GDI, but no idea for macOS.