/// <summary> /// Crop image to face (round) /// </summary> /// Crop an image to the face (circular/round crop). If there is more than /// one face present, choose the first one. /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='imageFile'> /// Image file to perform the operation on. Common file formats such as PNG, /// JPEG are supported. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <System.IO.Stream> CropFirstRoundAsync(this IFace operations, System.IO.Stream imageFile, CancellationToken cancellationToken = default(CancellationToken)) { var _result = await operations.CropFirstRoundWithHttpMessagesAsync(imageFile, null, cancellationToken).ConfigureAwait(false); _result.Request.Dispose(); return(_result.Body); }