如何在lisview中对图像进行操作 [英] how to make action in image in lisview

查看:77
本文介绍了如何在lisview中对图像进行操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
我正在列表视图中显示文件夹中的图像,但是我想在单击这些图像中的每一个时都在任何图像查看器程序(例如Windows窗口视图)中将其打开,但是我不知道如何制作它
请帮助
谢谢u

hi all
i am displaying images from folder in listview but i want when click on each of these images open it in any image viewer program like (windows photo view) but i do not know how to make it
please help
thank u

推荐答案

打开外部程序不是一个好选择(但Wes Aday回答很热:System.Diagnostics.Process.Start(/* ... */)).您将无法控制该流程,因为流程之间存在良好的隔离,除非该流程专门设计为参与某种协作,例如自动化.

使用一些进程内库会更好.在这种情况下,它将是.NET的图像组件之一.太糟糕了,您没有标记要使用的UI库的应用程序类型,因此,答案将大不相同.不用担心,您会很容易找到答案.例如:
http://bit.ly/OYFJZF [ ^ ].

祝你好运,
—SA
Opening an external program is not a good option (but Wes Aday answered hot to do it: System.Diagnostics.Process.Start(/* ... */)). You won''t be able to control that process, as processes are well isolated, unless the process is specifically designed to participate is some collaboration, like Automation.

It would be much better to use some in-proc library. In this case, it would be one of the image components for .NET. Too bad, you did not tag your application type of UI library you want to use, so the answers will be very different depending on that. Not to worry, you will easily find out. For example:
http://bit.ly/OYFJZF[^].

Good luck,
—SA


这篇关于如何在lisview中对图像进行操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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