asp:带缩放选项的图像控制 [英] asp:Image control with zoom options

查看:86
本文介绍了asp:带缩放选项的图像控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我正在使用Asp.Net C#3.5网络应用程序。在我们的Web应用程序中,我们使用了许多图像,这些图像不是静态的。最终用户可以根据自己的意愿上传和查看图像。但在登录之前,他们无法上传或查看他们的图片。现在这已经成功实现并且工作正常。



根据当前的编码,我使用2个asp:图像控件。一个用于imgPreview,第二个用于imgEnlarge。代码如,imgPreview.ImageUrl ='../ShowImage.aspx?pathid = x'和imgEnlarge.ImagUrl = imgPreview.ImageUrl。



asp:imgPreview has 25 px X 25 px和asp:imgEnlarge的大小将采用图像尺寸。要显示放大视图,我使用的是ajax:ModalPopupExtender。



以上工作正常。



新的要求是,在ModalPopupExtender内部(即在放大视图内),我需要放大,缩小,全屏,Roate,等等选项。



请为此提出任何建议。 (注意: - 图像是动态的,在登录之前它们不应该查看图像)

Hi,

I am working with Asp.Net C# 3.5 web applications. In our web applications we are using many images and those images are not static. The end-user can upload and view the images as per their wish. But before login they couldn't upload or view their images. Now this is successfully implemented and working fine.

As per the current coding, I am using 2 asp:image controls. One for imgPreview and second for imgEnlarge. And the code like, imgPreview.ImageUrl = '../ShowImage.aspx?pathid=x' and imgEnlarge.ImagUrl = imgPreview.ImageUrl.

asp:imgPreview has the size of 25 px X 25 px and asp:imgEnlarge will take the image dimension. To show the enlarge view, I am using ajax:ModalPopupExtender.

The above is working fine.

The new requirement is, inside the ModalPopupExtender (i.e. inside the enlarged view), I need to give Zoom In, Zoom Out, Full Screen, Roate, ... etc options.

Please suggest any idea for this. (Note:- Images are dynamic and before login they should not view images)

推荐答案





如果你已经在使用AjaxControlToolkit(即你的ModalPopupextender) - 那你为什么不看看 Seadragon 控制。



...这里是一篇关于如何使用它的好文章



希望它有所帮助。
Hi,

If your already using the AjaxControlToolkit (i.e. your ModalPopupextender) - then why don't you have a look at the Seadragon control.

... here's a nice article on how to use it.

Hope it helps.


请给我任何其他例子..
Please Give me any other example ..


这篇关于asp:带缩放选项的图像控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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