UIImage.Scale 方法

定义

重载

Scale(CGSize)

纵向扩展或缩减图像。

Scale(CGSize, nfloat)

纵向扩展或缩减图像。

Scale(CGSize)

纵向扩展或缩减图像。

public UIKit.UIImage Scale (CoreGraphics.CGSize newSize);
member this.Scale : CoreGraphics.CGSize -> UIKit.UIImage

参数

newSize
CGSize

缩放图像的所需大小。

返回

缩放的图像。

注解

这可以从后台线程使用。

适用于

Scale(CGSize, nfloat)

纵向扩展或缩减图像。

public UIKit.UIImage Scale (CoreGraphics.CGSize newSize, nfloat scaleFactor);
member this.Scale : CoreGraphics.CGSize * nfloat -> UIKit.UIImage

参数

newSize
CGSize

缩放图像的所需大小。

scaleFactor
nfloat

要应用于缩放图像的比例因子。 如果指定的值为零,则使用设备的缩放因子。

返回

缩放的图像。

注解

这可以从后台线程使用。

适用于