iOS Guides | Samples

MonoTouch.UIKit.UIImage.Scale Method

Scales the image up or down.

Syntax

public UIImage Scale (SizeF newSize, Single scaleFactor)

Parameters

newSize
The desired size for the scaled image.
scaleFactor
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.

Requirements

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