編輯

共用方式為


UIImage.CurrentScale Property

Definition

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.

Applies to