如何动态显示Flow Document Reader中的所有图像 [英] How to Display All images in Flow Document Reader Dynamically
问题描述
使用(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;
}
我想动态显示流文档阅读器中的所有图像。
您好,请参考此链接,它可能对您有所帮助
http://msdn.microsoft.com/en-us/ magazine / cc163371.aspx [ ^ 一>
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.
Hi Refer this link, it may be helpful for you
http://msdn.microsoft.com/en-us/magazine/cc163371.aspx[^]
这篇关于如何动态显示Flow Document Reader中的所有图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!