예제 #1
0
        public virtual async Task <byte[]> GetThumbnailAsync(Stream stream, int width, int height, bool smartCropping = true)
        {
            var response = await RepositoryClient.SendOctetStreamPostForBytesAsync(ApiKeys.ComputerVision, $"{ApiKeys.ComputerVisionEndpoint}generateThumbnail?width={width}&height={height}&smartCropping={smartCropping}", stream);

            return(response);
        }