- Notifications
You must be signed in to change notification settings - Fork548
[coregraphics] Update for Xcode 11 beta 1 and 2#6337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
d453f6b5cbfbe8335d82cc338338b81adf1File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
along with unit tests for p/invokes
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -134,6 +134,39 @@ public CGColorConversionInfo (CGColorSpace src, CGColorSpace dst) | ||
| throw new Exception ("Failed to create CGColorConversionInfo"); | ||
| } | ||
| [Mac (10,15, onlyOn64: true)] | ||
| [iOS (13,0)] | ||
| [TV (13,0)] | ||
| [Watch (6,0)] | ||
| [DllImport(Constants.CoreGraphicsLibrary)] | ||
| static extern /* CGColorConversionInfoRef* */ IntPtr CGColorConversionInfoCreateWithOptions (/* CGColorSpaceRef* */ IntPtr src, /* CGColorSpaceRef* */ IntPtr dst, /* CFDictionaryRef _Nullable */ IntPtr options); | ||
| [Mac (10,15, onlyOn64: true)] | ||
| [iOS (13,0)] | ||
| [TV (13,0)] | ||
| [Watch (6,0)] | ||
| public CGColorConversionInfo (CGColorSpace src, CGColorSpace dst, NSDictionary options) | ||
| ||
| { | ||
| if (src == null) | ||
| throw new ArgumentNullException (nameof (src)); | ||
| if (dst == null) | ||
| throw new ArgumentNullException (nameof (dst)); | ||
| Handle = CGColorConversionInfoCreateWithOptions (src.Handle, dst.Handle, options.GetHandle ()); | ||
| if (Handle == IntPtr.Zero) | ||
| throw new Exception ("Failed to create CGColorConversionInfo"); | ||
| } | ||
| [Mac (10,15, onlyOn64: true)] | ||
| [iOS (13,0)] | ||
| [TV (13,0)] | ||
| [Watch (6,0)] | ||
| public CGColorConversionInfo (CGColorSpace src, CGColorSpace dst, CGColorConversionOptions options) : | ||
| ||
| this (src, dst, options?.Dictionary) | ||
| { | ||
| } | ||
| ~CGColorConversionInfo () | ||
| { | ||
| Dispose (false); | ||
Uh oh!
There was an error while loading.Please reload this page.