iOS Guides | Samples

MonoTouch.UIKit.UIImage.CurrentScale Property

The scale of the image.

Syntax

[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 4, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
[MonoTouch.ObjCRuntime.ThreadSafe]
[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; }

Value

Typically this value is 2.0 on Retina-display devices.

Remarks

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.

Requirements

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