UIGraphicsImageRendererFormat.GetFormat(UITraitCollection) 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.
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