UIColor.FromCGColor(CGColor) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a UIColor based on the Core Graphics Quartz color reference.
[Foundation.Export("colorWithCGColor:")]
public static UIKit.UIColor FromCGColor (CoreGraphics.CGColor color);
static member FromCGColor : CoreGraphics.CGColor -> UIKit.UIColor
Parameters
- color
- CGColor
The CoreGraphics CGColor.
Returns
Newly constructed UIColor.
- Attributes
Remarks
This can be used from a background thread.