Edytuj

Udostępnij za pośrednictwem


UIImage.Scale Method

Definition

Overloads

Scale(CGSize)

Scales the image up or down.

Scale(CGSize, nfloat)

Scales the image up or down.

Scale(CGSize)

Scales the image up or down.

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

Parameters

newSize
CGSize

The desired size for the scaled image.

Returns

The scaled image.

Remarks

This can be used from a background thread.

Applies to

Scale(CGSize, nfloat)

Scales the image up or down.

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

Parameters

newSize
CGSize

The desired size for the scaled image.

scaleFactor
nfloat

Scale factor to apply to the scaled image. If the value specified is zero, the device's scale factor is used.

Returns

The scaled image.

Remarks

This can be used from a background thread.

Applies to