Exemple #1
0
        public static CGImage ScreenImage(int windownumber, CGRect bounds, CGWindowListOption windowOption,
                                          CGWindowImageOption imageOption)
        {
            IntPtr imageRef = CGWindowListCreateImage(bounds, windowOption, (uint)windownumber,
                                                      imageOption);

            if (imageRef == IntPtr.Zero)
            {
                return(null);
            }
            return(new CGImage(imageRef, true));
        }
Exemple #2
0
        public static CGImage ScreenImage2(int windownumber, CGRect bounds, CGWindowListOption windowOption, CGWindowImageOption imageOption)
        {
            IntPtr imageRef = CGWindowListCreateImage(bounds, windowOption, (uint)windownumber, imageOption);

            return(new CGImage(imageRef));
        }
Exemple #3
0
 static extern IntPtr CGWindowListCreateImage(CGRect screenBounds, CGWindowListOption windowOption, uint windowID, CGWindowImageOption imageOption);
Exemple #4
0
		static extern IntPtr CGWindowListCreateImage(CGRect screenBounds, CGWindowListOption windowOption, uint windowID, CGWindowImageOption imageOption);