public static GetThumbnail ( this operations, double width, double height, bool smartCropping = true, string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string) ) : void | ||
operations | this | /// The operations group for this extension method. /// |
width | double | /// Width of the thumbnail. It must be between 1 and 1024. Recommended /// minimum of 50. /// |
height | double | /// Height of the thumbnail. It must be between 1 and 1024. Recommended /// minimum of 50. /// |
smartCropping | bool | /// Boolean flag for enabling smart cropping. /// |
subscriptionKey | string | /// subscription key in url /// |
ocpApimSubscriptionKey | string | /// subscription key in header /// |
return | void |
public static void GetThumbnail(this IComputerVisionAPIV10 operations, double width, double height, bool? smartCropping = true, string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string))
{
System.Threading.Tasks.Task.Factory.StartNew(s => ((IComputerVisionAPIV10)s).GetThumbnailAsync(width, height, smartCropping, subscriptionKey, ocpApimSubscriptionKey), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
}