UIImage.Scale Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.