为什么在asp.net中使用图像缩略图 [英] why you use thumbnail of image in asp.net

查看:115
本文介绍了为什么在asp.net中使用图像缩略图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么在asp.net中使用图像的缩略图?我不知道如何使用图像的缩略图.请解释一下.
谢谢大家.

Why you use thumbnail of image in asp.net?I do not know about using thumbnail of image.Please explain me.
Thanks for all.

推荐答案

在为网站或Web应用程序工作时,遇到了一种情况,我们需要为更大的图像显示缩略图.有几种解决方法.

缩略图是真实图像的缩小图像副本,或者您可以说缩略图图像的尺寸非常小,即它们是调整大小的图像,不仅物理尺寸很小,而且文件大小也很小.实际的缩略图不仅是看起来较小的图像,因为它们正在使用img标签的width和height属性进行调整.真实缩略图的好处是可以非常快速地加载小尺寸的预览"图像.仅当文件较小时才会发生这种情况.使用image标签制作缩略图没有真正的优势,因为文件大小恰好与完整图像一样. .NET框架包括一些非常有用的功能和名称空间的集合.其中最吸引人的是system.drawing命名空间,它使程序员可以使用图像.

参考:
http://www.c-sharpcorner.com/uploadfile/prathore /make-thumbnail-image-using-Asp-Net/ [使用C#在ASP.NET中动态生成缩略图,而不会影响初始页面加载时间 [ ^ ]

希望这会有所帮助.
While working for a website or an web application, we came across a situation where we need to display a thumbnail images for a larger images. There are several work around for it.

Thumbnails are reduced image copies of the real image or you can say Thumbnail images are very small in size images i.e. they are resized images that are not only small physical size but small file size. Real thumbnails are NOT just images that look smaller because the are being resized with the width and height attributes of the img tag. The benefit of a real thumbnail is that it loads a small size ''preview'' images very fast. This will only happen if the file size is small. There is no real advantage using the image tag to make a thumbnail because the file size is exactly as the full image. The .NET framework includes some extremely useful functionality and collections of namespaces. One of the most intriguing is the system.drawing namespace which allows the programmer to work with images.

Refer:
http://www.c-sharpcorner.com/uploadfile/prathore/make-thumbnail-image-using-Asp-Net/[^]
Dynamically generating thumbnail images in ASP.NET with C# without affecting initial page load time[^]

Hope this will help.


保存bandwitdth
为避免性能问题
为了避免不必要的事情

用简单的句子..... 按需加载
To save bandwitdth
To avoid performance issue
To avoid unnecessary things

In simple sentence.....Load on-demand


这篇关于为什么在asp.net中使用图像缩略图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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