从文件夹中查看多图像 [英] View multi image from folder

查看:64
本文介绍了从文件夹中查看多图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



如何查看文件夹中有多个文件的图像?我已将我的XPS转换为位图。以及如何将文件加载到picturebox /任何更好的工具?我没有找到将XPS文件视为winforms的确切方法,因为我将每个页面转换为图像。现在我被困在如何加载winforms中的所有图像。 1图像不是问题,但问题是多图像。



任何链接?或建议查看XPS文件?

Hi all,

How can I view the image which have several file in a folder? I have convert my XPS to bitmap. And how to load the file to picturebox/any better tools? I not found the exact way to view the XPS file into winforms thought I convert each page to an image. Now I'm stuck on how to load all the images in the winforms. 1 image is not a problem, but problem is multi images.

Any link for this? Or suggestion for viewing XPS file?

推荐答案

你在这里采取的几条路径;这两个选项将删除将您的XPS文件转换为图像的任务:



1.使用WPF DocumentViewer在WinForm中显示XPS文件。有一篇CodeProject文章将向您展示如何:[ ^ ]。



2.将WebBrowser控件放入WinForm并让它显示XPS文件。



如果您使用转换后的图像,那么您需要详细说明如何在WinForm中显示图像:



1.一次一个? ......或者,全部?或者,多个?在动画序列中?



2.每个图像在TabControl中的单独TabPage上?



I假设您可以将XPS文件转换为一系列图像,那么您就知道如何从目录中获取给定类型(或名称)的所有文件并按需加载它们,但如果是问题,然后就这么说。
Several paths you take here; these two options would remove the task of converting your XPS file into Images:

1. Use the WPF DocumentViewer to display the XPS file in a WinForm. There's a CodeProject article will show you how to that: [^].

2. Put a WebBrowser Control in your WinForm and have it display the XPS file.

If you use your converted Images, then you need to say more about how you want to present the Images in your WinForm:

1. one at-a-time ? ... or, all ? or, multiple ? in an animated sequence ?

2. each Image on a separate TabPage in a TabControl ?

I'm going to assume that if you can convert an XPS file to a series of Images, then you know how to get all the files of a given type (or name) from a Directory and load them on demand, but if that is a problem for you, then just say so.


这篇关于从文件夹中查看多图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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