Example #1
0
        private async void Render_OnClick(object sender, RoutedEventArgs e)
        {
            var ms       = RenderStaticTextToBitmap();
            var msrandom = new MemoryRandomAccessStream(ms);

            BitmapImage image = new BitmapImage();
            await image.SetSourceAsync(msrandom);

            RenderedImage.Source = image;
        }
        private async void Render_OnClick(object sender, RoutedEventArgs e)
        {
            var ms = RenderStaticTextToBitmap();
            var msrandom = new MemoryRandomAccessStream(ms);

            BitmapImage image = new BitmapImage();
            await image.SetSourceAsync(msrandom);

            RenderedImage.Source = image;
        }