查看网格的全尺寸图像 [英] View Full Size image of grid

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

问题描述





我在wpf中有一个数据网格,我在其中一个列中显示图像。我的要求是当你点击这个图像时,它应该由系统默认的图像查看器以放大模式显示。建议我如何实现它?

解决方案

为什么默认查看器?您可以轻松地在应用程序中实现查看,您可以在其中完全控制。对于那些想要不同观众的人,请提供保存。顺便说一句,外部查看器(默认与否)将需要有一个文件,所以你没有什么可以放松。 保存是非常有益的,因为那时用户决定把它放在哪里,你不需要乱用临时文件。



我很漂亮一旦你已经可以在网格视图中查看图像,你就知道如何制作一个观众。



-SA

Hi,

I have a datagrid in wpf in which I am displaying image in one of its column. My requirement is when you click on this image, it should be displayed by system default image viewer in enlarged mode. Suggest me how can I implement it?

解决方案

Why default viewer? You can easily implement viewing it inside your application, where you can have full control. For those who wants a different viewer, provide "Save". By the way, and external viewer (default or not) will require to have a file anyway, so you have nothing to loose. "Save" is very beneficial, because then the user decides where to put it, you won''t need to mess with temporary file.

I''m pretty much sure you know how to make a viewer, as soon as you already can view the image in the grid view.

—SA


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

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