UIImage.CurrentScale Property
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.
The scale of the image.
[ObjCRuntime.ThreadSafe]
public virtual nfloat CurrentScale { [Foundation.Export("scale")] get; }
member this.CurrentScale : nfloat
Property Value
Typically this value is 2.0 on Retina-display devices.
- Attributes
Remarks
The resolution of the UIImage in pixels, is equal to this value times the Size. Images for Retina-display devices will typically have a CurrentScale of 2.0. Files whose names end with "@2x" will automatically load with a CurrentScale of 2.0
This can be used from a background thread.