AssetsLibrary.ALAsset.AspectRatioThumbnail Method
Returns a thumbnail image that preserves the original aspect ration of the source image.

Syntax

[Foundation.Export("aspectRatioThumbnail")]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_5_0)]
public virtual CoreGraphics.CGImage AspectRatioThumbnail ()

Returns

CGImage that has already been rotated to the right orientation.

Remarks

This returns a thumbnail image representing the asset. The thumbnail returned will preserve the original aspect ration of the original image returned by the AssetsLibrary.ALAssetRepresentation.ALAssetRepresentation.GetImage(). The image will be rendered in the correct orientation, so it is not necessary to apply any rotation on the returned value.

This API is only available on iOS 5. On previous version of the operating system you can obtain a square thumbnail by using the ALAsset.Thumbnail property.

Requirements

Namespace: AssetsLibrary
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0