Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How to display Images in Flow document Reader

$
0
0

using (MemoryStream ms = new MemoryStream())
                                {
                                    bmp.Save(ms, ImageFormat.Png);
                                    BitmapImage bmpImage = new BitmapImage();
                                    ms.Seek(0,SeekOrigin.Begin);
                                    bmpImage.BeginInit();
                                    bmpImage.StreamSource = ms;
                                    bmpImage.CacheOption = BitmapCacheOption.OnLoad;
                                    bmpImage.EndInit();
                                    System.Windows.Controls.Image image = new System.Windows.Controls.Image();
                                    image.Source = bmpImage;
                                    image.Stretch = System.Windows.Media.Stretch.Uniform;
                                }

I want to display all images in flow document reader dynamically.

Musakkhir Sayyed.


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>