ALAsset.AspectRatioThumbnail 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.
Returns a thumbnail image that preserves the original aspect ration of the source image.
[Foundation.Export("aspectRatioThumbnail")]
public virtual CoreGraphics.CGImage AspectRatioThumbnail ();
abstract member AspectRatioThumbnail : unit -> CoreGraphics.CGImage
override this.AspectRatioThumbnail : unit -> CoreGraphics.CGImage
Returns
CGImage that has already been rotated to the right orientation.
- Attributes
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 ALAssetRepresentation.M:AssetsLibrary.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 Thumbnail property.