iOS Guides | Samples

MonoTouch.UIKit.UIImage.CreateAnimatedImage Method

This method will create a animated image from a collection of images.

Syntax

[MonoTouch.Foundation.Export("animatedImageWithImages:duration:")]
[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 5, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
[MonoTouch.ObjCRuntime.ThreadSafe]
public static UIImage CreateAnimatedImage (UIImage[] images, Double duration)

Parameters

images
A collection of UIImages to make up the animation.
duration
The dureation of the animation in seconds.

Returns

Remarks

The source images should all be the same size and scale.

This can be used from a background thread.

Requirements

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