如何动态显示Flow Document Reader中的所有图像 [英] How to Display All images in Flow Document Reader Dynamically

查看:137
本文介绍了如何动态显示Flow Document Reader中的所有图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用(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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆