你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ImageAnalysisOptions.SmartCropsAspectRatios Property
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.
A list of aspect ratios to use for smart cropping.
public System.Collections.Generic.IEnumerable<float> SmartCropsAspectRatios { get; set; }
member this.SmartCropsAspectRatios : seq<single> with get, set
Public Property SmartCropsAspectRatios As IEnumerable(Of Single)
Property Value
Remarks
Aspect ratios are calculated by dividing the target crop width in pixels by the height in pixels. Supported values are between 0.75 and 1.8 (inclusive). If this parameter is not specified, the service will return one crop region with an aspect ratio it sees fit between 0.5 and 2.0 (inclusive).