从流中获取缩略图.

从流中获取缩略图.

问题描述:

是否可以直接从流中调整位图的大小,而不必使用Image.FromStream将其加载到位图对象中.我正在处理甚至具有桌面背景尺寸的大图像,并且只能访问zip文件中的流.

Is there a possibility to resize bitmap directly from stream , not loading it in bitmap object using Image.FromStream . I''m working with large images with sizes even of desktop backgrounds and I only have access to a stream from zip file.

以下是有关该主题的几篇文章:
缩略图HTTP处理程序 [用于ASP.NET 2.0的缩略图图像查看器控件 [ ASP.NET缩略图解决方案 [使用IHttpHandler的通用图像处理程序 [
Here is a few articles on the subject:
Thumbnailer HTTP Handler[^]
Thumbnail Image Viewer Control for ASP.NET 2.0[^]
An ASP.NET thumbnail solution[^]
Generic Image Handler Using IHttpHandler[^]

At least the subject is similar enough to provide a starting point for your task :)

Regards
Espen Harlinn