How do I render the scrollable regions of a canvas with IViewObject::Draw?
Posted
by nirvdrum
on Stack Overflow
See other posts from Stack Overflow
or by nirvdrum
Published on 2010-01-29T02:57:40Z
Indexed on
2010/03/25
7:03 UTC
Read the original article
Hit count: 433
Hi,
I've been trying to render the entire canvas in an IWebBrowser2 control to a bitmap. IViewObject::Draw seems to be the most promising approach, but I can't get it to render anything that would requires a scroll to show. While I could automate the scrolling and stitch the images together, this would look weird with any fixed position elements. Is this even doable?
Additionally, I've tried to set the controller's size to one that would allow the entire contents to display without needing to scroll, but Windows caps the max size to the current screen resolution, so that only gets me partially there.
Any help would be much appreciated. I'm currently doing this in the context of Win7 and IE8, but I don't think that should matter much.
© Stack Overflow or respective owner