问题描述
使用(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;
}
我想动态显示流文档阅读器中的所有图像。
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.
这篇关于如何动态显示Flow Document Reader中的所有图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!