Bewerken

Delen via


UIGraphicsImageRendererFormat.GetFormat(UITraitCollection) Method

Definition

Returns a graphics image render format for the specified trait collection.

[Foundation.Export("formatForTraitCollection:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static UIKit.UIGraphicsImageRendererFormat GetFormat (UIKit.UITraitCollection traitCollection);
static member GetFormat : UIKit.UITraitCollection -> UIKit.UIGraphicsImageRendererFormat

Parameters

traitCollection
UITraitCollection

The trait collection for which to return an image render format.

Returns

Attributes

Applies to