I'm using Xamarin/MONO to write a MacOS application, and I'd like to screenshot an image from the screen and use it alongside other image libraries in .NET
I've found I can use the native system libs like so
[DllImport(Constants.CoreGraphicsLibrary)]
static extern IntPtr CGWindowListCreateImage(CGRect screenBounds, CGWindowListOption windowOption, uint windowID, CGWindowImageOption imageOption);
however once I have the CGImage intptr, it isn't a lot of good to me as I want to do some System.Drawing stuff to it that I've already implemented for other platforms. Is there a way I can use the IntPtr and somehow get a System.Drawing image? or perhaps save the CGImage intptr to disk and load it using System.Drawing?