neal$2006275
neal

03/02/2007 :: 22:31

Registered

Yet another question.

Is there a way to merge two images into a single image. Here's what I'm trying to do, perhaps there's a better way. I want to create an image of the full page of an open IE window. If they page all fits on the screen, then no problem, but if the page has to scroll, then you only get the visible region by using CreateImageFromHwnd.

So I am programatically scrolling to the top page, capturing the visible area, and then scrolling down and capturing another image, and continue doing so until the entire page is captured. I crop off the area that is duplicated in the last capture and now I have seperate images, that when put together will give me the full IE page.

My problem is I can't figure out how to paste these into a single image that is the entire page.

Thanks,

Neal
Loïc$2006306
Loïc

03/09/2007 » 07:26

Registered

Hi Neal.

Tmerge image you have to draw an image into another with the DrawImage2 method: http://gdpicture.com/references/gdpicturepro/content/cGdPicture-DrawImage2.html

You can call the SetTransparencyEffect() before merging if you want to draw an image to another with transparency: http://gdpicture.com/references/gdpicturepro/content/cGdPicture-SetTransparencyEffect.html

Best regards,

Loïc Carrère

Note: this method is include into the last edition.

Edited by @lcarrere  
back to forum