UIColor.FromCGColor(CGColor) Method

Definition

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.

Applies to