Example #1
0
        private void GenerateHTMLButton_Click(object sender, RoutedEventArgs e)
        {
            /*
             * htmlStream = photoStream;
             * htmlBitmap = photoBitmap;
             * htmlBitmapSource = photoBitmapSource;
             *
             * HtmlPhoto.Source = htmlBitmapSource;
             */

            if (idStream != null && idBitmap != null && portraitPath != null)
            {
                HtmlGenerator gen = new HtmlGenerator(idStream, idBitmap.PixelWidth, idBitmap.PixelHeight, portraitPath);
                gen.GenerateHtmlAsync();

                Uri source = new Uri("ms-appdata:///Local/Packages/59ef7bd3-08e9-4e25-993d-ccf404cd019e_cj1w1dahfk9sw/TempState/TEMP_HTML.html");
                WebView.Navigate(source);
            }
        }
Example #2
0
        private void GenerateHTMLButton_Click(object sender, RoutedEventArgs e)
        {
            /*
            htmlStream = photoStream;
            htmlBitmap = photoBitmap;
            htmlBitmapSource = photoBitmapSource;

            HtmlPhoto.Source = htmlBitmapSource;
            */

            if (idStream != null && idBitmap != null && portraitPath != null)
            {
                HtmlGenerator gen = new HtmlGenerator(idStream, idBitmap.PixelWidth, idBitmap.PixelHeight, portraitPath);
                gen.GenerateHtmlAsync();

                Uri source = new Uri("ms-appdata:///Local/Packages/59ef7bd3-08e9-4e25-993d-ccf404cd019e_cj1w1dahfk9sw/TempState/TEMP_HTML.html");
                WebView.Navigate(source);
            }
        }