在页面加载放入小版本的图像 [英] loading small version of images at page load

查看:115
本文介绍了在页面加载放入小版本的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用VS2010,C#开发我的ASP.NET Web应用程序,我在显示页面几大影像(约50KB大小),它当然需要时间,这些图像最初只是一些小版本显示,然后用户可以点击每幅图像与实际尺寸的图像会显示在一个灯箱。但正如我加载完整大小的图片显示缩略图,需要花费大量的时间加载页面,在那里我可以只载入每个图像的小尺寸的什么办法?有没有什么办法,我可以减少我的加载​​时间和图像显示缩略图?我有哪些选择,请帮助我

I'm using VS2010,C# to develop my ASP.NET web app, I display several big images (around 50KB in size) in a page, and it takes time, of course initially just some small versions of these images are displayed, then user can click on each image and the real size image would be displayed in a lightbox. But as I load the full size images for displaying the thumbnails, it takes a lot of time for loading the page, is there any way that I can load only a small size of each image? is there any way that I can reduce my load time and display thumbnails of images? what are my options, help me please

推荐答案

最好用Thumbviewer。这是很容易使用,你会惊讶它是如何工作的效率。

best to use Thumbviewer. It is so easy to use and you'll be surprise how efficient it works.

<bri:ThumbViewer ID="ThumbViewer2" runat="server" ImageUrl="~/images/Scissors.jpg"
                    Title="Tailors Scissors" ThumbUrl="~/thumbs/Scissors.jpg" Height="75px" Width="90px" ModalImagePadding="40px" />

您可以找到演示此处的 Thumbnail-Image-Viewer-Control-for-ASP.Net

you can find demo here : Thumbnail-Image-Viewer-Control-for-ASP.Net

这篇关于在页面加载放入小版本的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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