将网页加载到缩略图中 [英] Loading a webpage into a thumbnail

查看:94
本文介绍了将网页加载到缩略图中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好(我再来一次。我确实试着回答帖子,而不仅仅是

问!!!)


任何想法我怎么样可以将网页加载到一个大小相当于邮票大小

的控件中?我尝试了一些东西,但它只是将滚动条放在控件上

并显示整个页面。基本上,我想缩放

网页的图像。


-

Bob Hollness


-------------------------------------

我会有一个B请鲍勃

Hi all (me again. I do try to answer the posts I can instead of just
asking!!!)

Any ideas how I could load a webpage into a control that was about the size
of a stamp? I tried a few things but it just put scrollbars on the control
and showed the page as a whole. Basically, I want to scale an image of the
webpage I guess.

--
Bob Hollness

-------------------------------------
I''ll have a B please Bob

推荐答案

嗨鲍勃,


我从来没有需要自己做(使用Html)所以我不完全确定。

我们知道Explorer shell可以快速轻松地完成这项工作,所以我倾向于寻找

通过Win32来获取任何钩子都可以在那里使用。重新发明

轮没有任何意义。


这篇文章*附近*您想要去的地方,但它全部采用MFC / Com技术。
http://www.codeproject.com/shell/thumbextract.asp


除此之外,还有大量的商业产品可以做到这一点,其中大部分似乎都使用了某种形式的打印驱动程序,然后随后提取从那张图片来看。


我不认为它特别难,但我几乎可以保证没有

纯粹管理的方式来做到这一点。但是我希望被证明是错的。


;)


Richard

" Bob Hollness" < bo*@blockbuster.com>在消息新闻中写道:u8 ************** @ TK2MSFTNGP14.phx.gbl ...
Hi Bob,

Ive never needed to do that myself (with Html) so im not entirely sure.
We know that the Explorer shell does this quickly and easily so i would be inclined to be looking
through the Win32 to leveredge whatever hooks are availbale there. No sense in reinventing the
wheel.

This article *near* where you want to go but its all in MFC/Com technologies.
http://www.codeproject.com/shell/thumbextract.asp

Beyond that there are a slew of commerical products that do this, the bulk of which seem to use
some form of print driver and then subsequently extracting an image from that.

I dont anticipate it being particularly hard but I can almost guarantee there is no
purely managed way to do this. However i would love to be proved wrong.

;)

Richard
"Bob Hollness" <bo*@blockbuster.com> wrote in message news:u8**************@TK2MSFTNGP14.phx.gbl...
大家好(我再说一遍。我确实试着回复帖子我可以而不仅仅是询问!!!)

任何想法如何将网页加载到一个大小相当于邮票大小的控件中?我尝试了一些东西,但它只是将滚动条放在控件上并显示整个页面。基本上,我想缩放
网页的图像。

-
Bob Hollness

-------- -----------------------------
我会有一个B请Bob
Hi all (me again. I do try to answer the posts I can instead of just
asking!!!)

Any ideas how I could load a webpage into a control that was about the size
of a stamp? I tried a few things but it just put scrollbars on the control
and showed the page as a whole. Basically, I want to scale an image of the
webpage I guess.

--
Bob Hollness

-------------------------------------
I''ll have a B please Bob



事实上......看起来很容易。


使用以下Win32界面

http://msdn.microsoft.com/library/de...ailcapture.asp


Richard
In fact... looks like it will be dead easy.

Using the following Win32 interface

http://msdn.microsoft.com/library/de...ailcapture.asp

Richard


嗨Bob,
Hi Bob,
我是如何将网页加载到一个关于邮票大小的控件中的?我尝试了一些东西,但它只是将滚动条放在
控件上并显示整个页面。基本上,我想缩放网页的图像我猜想。
Any ideas how I could load a webpage into a control that was about the
size of a stamp? I tried a few things but it just put scrollbars on the
control and showed the page as a whole. Basically, I want to scale an
image of the webpage I guess.




有几种方法(据我所知)。首先是使用MSHTML

将页面渲染到您想要的DC。或者使用IShellExtractor获取本地HTML文件的

缩略图。虽然我实际上并没有设法让后者工作,而且有些东西让我相信这个功能已经被移除了出于安全目的,因为资源管理器没有现在就做。


这是一个关于MSHTML的链接*可能会帮助你。

http://www.devcity.net/forums/topic.asp?tid=85214

^你将不得不翻找那一个,因为它充满了一堆

的人在你想要的时候有问题。但我相信它应该指向你正确的方向。

http://www.codeproject.com/internet/...agecapture.asp

^这另一方面有一个可用的C ++抱歉,这不是.NET

:-(


尼克。



There are a couple of ways (as I know of). Firstly is to use MSHTML to
render the page to your desired DC. Or use IShellExtractor to get a
thumbnail of a local HTML file. Although I haven''t actually managed to get
the latter to work, and something makes me believe that this feature has
been removed for security purposes, as Explorer doesn''t even do it now.

Here is a link on MSHTML that *might* help you.

http://www.devcity.net/forums/topic.asp?tid=85214
^ You''ll have to rummage through that one as it''s full of a bunch of
people having problems doing as you desire. But I believe it should point
you in the right direction.

http://www.codeproject.com/internet/...agecapture.asp
^ This on the other hand has a working C++ example, sorry it''s not .NET
:-(

Nick.


这篇关于将网页加载到缩略图中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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