Bug 25723 - [Binding]Bind CGWindowListCreateImage and other CoreGraphics Window APIs
Summary: [Binding]Bind CGWindowListCreateImage and other CoreGraphics Window APIs
Status: RESOLVED FIXED
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: Library (Xamarin.Mac.dll) ()
Version: Master
Hardware: PC Mac OS
: Normal normal
Target Milestone: master
Assignee: Timothy Risi
URL:
Depends on:
Blocks:
 
Reported: 2015-01-05 15:34 UTC by Chris Hamons
Modified: 2017-03-09 01:42 UTC (History)
5 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Chris Hamons 2015-01-05 15:34:19 UTC
CGWindowListCreateImage and the like https://developer.apple.com/library/mac/documentation/Carbon/Reference/CGWindow_Reference/Reference/Functions.html are very useful in some cases (screen shots).
Comment 2 Sebastien Pouliot 2017-03-09 01:42:19 UTC
It seems this has been available for quite some time (it was when we open sourced xamarin-macios)

castor:xamarin-macios poupou$ git grep CGWindowListCreateImage
src/CoreGraphics/CGImage.cs:            static extern IntPtr CGWindowListCreateImage(CGRect screenBounds, CGWindowListOption windowOption, uint windowID, CGWindowImageOption imageOption);
src/CoreGraphics/CGImage.cs:                    IntPtr imageRef = CGWindowListCreateImage(bounds, CGWindowListOption.IncludingWindow, (uint)windownumber,

castor:xamarin-macios poupou$ git blame src/CoreGraphics/CGImage.cs | grep CGWindowListCreateImage
5830166c (Rolf Bjarne Kvinge 2016-04-21 14:30:02 +0200 197) 		static extern IntPtr CGWindowListCreateImage(CGRect screenBounds, CGWindowListOption windowOption, uint windowID, CGWindowImageOption imageOption);
5830166c (Rolf Bjarne Kvinge 2016-04-21 14:30:02 +0200 201) 			IntPtr imageRef = CGWindowListCreateImage(bounds, CGWindowListOption.IncludingWindow, (uint)windownumber,

Please re-open if I missed anything.