-
-
Save chamons/b8c76b2019f38336a6c0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int displayID = MainDisplayID (); | |
IntPtr handle = CGDisplayCreateImage (displayID); | |
CoreGraphics.CGImage i = ObjCRuntime.Runtime.GetINativeObject <CoreGraphics.CGImage> (handle, true); | |
[System.Runtime.InteropServices.DllImport ("/System/Library/Frameworks/QuartzCore.framework/QuartzCore")] | |
static extern IntPtr CGDisplayCreateImage (int displayID); | |
[System.Runtime.InteropServices.DllImport("/System/Library/Frameworks/ApplicationServices.framework/Versions/Current/ApplicationServices", EntryPoint="CGMainDisplayID")] | |
internal static extern int MainDisplayID(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment