Re: Loading a webpage into a thumbnail

From: Cor Ligthert (notmyfirstname_at_planet.nl)
Date: 11/26/04


Date: Fri, 26 Nov 2004 08:41:31 +0100

Nick,

I never understand how it was done, however now Bop Hollness write it, I get
it.
Get your page in the axwebbrowser
Take that part of screen in a bmp
Set it to a thumbnail using the tumbnail method from gdi
And that is all.

Probably not more than 20 lines of code.

I think I should try this one ones.

However I think that this is more a nice simple chalenge for our Multimedia
Student in my idea

Cor

"Nak" <a@a.com>
>
>> 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.
>
> 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/htmlimagecapture.asp
> ^ This on the other hand has a working C++ example, sorry it's not .NET
> :-(
>
> Nick.
>



Relevant Pages

  • Re: Pinging BigPhil and Biff theJack
    ... every desire and impulse. ... I wonder how you think that dogs manages to suppress their impulses when humans aren't around to impose human control on them. ... Dogs in a pack who don't suppress their impulses are quickly corrected by other members of the pack. ...
    (rec.pets.dogs.behavior)
  • Re: WebBrowser Mouse Move / Click
    ... WebPage becomes "static" i.e. does not respond to mouse clicks on links. ... This code is for a form that has a WebBrowser control ... DOM except that it has pseudo datatypes ... Private Sub Form_Load ...
    (microsoft.public.vb.general.discussion)
  • Re: Pinging BigPhil and Biff theJack
    ... They learn human-control, not self-control. ... Without our control they would act upon ... every desire and impulse. ...
    (rec.pets.dogs.behavior)
  • Re: I need a Tool to reset all the NTFS folder and file permissi
    ... >> HOPE -- Desire and expectation rolled into one. ... Go to security, ... > group) to have full control. ... Then to set these permissons for the ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Ecokosher
    ... :> One can't eliminate an impulse one is having now. ... such that one can control the odds of fixating on ... coveting is really against acting to fulfill a desire for something ... The obvious prohibition is against acting to ...
    (soc.culture.jewish.moderated)

Quantcast