Exemple #1
0
        static async Task RenderImage(AdaptiveCard card, string image)
        {
            var renderer    = new AdaptiveCardRenderer();
            var imageStream = await renderer.RenderToImageAsync(card);

            using (FileStream fileStream = new FileStream(image, FileMode.Create))
            {
                await imageStream.CopyToAsync(fileStream);
            }
        }