iOS Guides | Samples

MonoTouch.UIKit.UIImage.CurrentScale Property

The scale of the image.


[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 4, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
[get: MonoTouch.Foundation.Export("scale")]
[get: MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 4, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
public virtual Single CurrentScale { get; }


Typically this value is 2.0 on Retina-display devices.


The resolution of the 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 CurrentScale of 2.0

This can be used from a background thread.


Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: