Freigeben über


UIColor.FromCGColor(CGColor) Methode

Definition

Erstellt eine UIColor basierend auf der Core Graphics Quartz-Farbreferenz.

[Foundation.Export("colorWithCGColor:")]
public static UIKit.UIColor FromCGColor (CoreGraphics.CGColor color);
static member FromCGColor : CoreGraphics.CGColor -> UIKit.UIColor

Parameter

color
CGColor

The CoreGraphics CGColor.

Gibt zurück

Neu erstellte UIColor.

Attribute

Hinweise

Dies kann aus einem Hintergrundthread verwendet werden.

Gilt für: