Exemplo n.º 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;
        }
Exemplo n.º 2
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;
        }