UIKit.UIImage.CurrentScale Property
The scale of the image.

Syntax

[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_4_0)]
[ObjCRuntime.ThreadSafe]
[get: Foundation.Export("scale")]
[get: ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_4_0)]
public virtual nfloat CurrentScale { get; }

Value

Typically this value is 2.0 on Retina-display devices.

Remarks

The resolution of the UIKit.UIImage in pixels, is equal to this value times the UIImage.Size. Images for Retina-display devices will typically have a UIImage.CurrentScale of 2.0. Files whose names end with "@2x" will automatically load with a UIKit.UIImage.CurrentScale of 2.0

This can be used from a background thread.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0