編集

次の方法で共有


ALAsset.AspectRatioThumbnail Method

Definition

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.

Applies to