Capture the browser rendering as an image [message #436297] |
Fri, 14 May 2004 22:04 |
Eclipse User |
|
|
|
Originally posted by: no.email.please
Hi,
I'm trying to capture the rendering of a web browser (using for instance
the org.eclipse.swt.browser.Browser, or the OLE "Shell.Explorer"), in
order to convert it to an image.
I tried the snippet at
http://dev.eclipse.org/viewcvs/index.cgi/platform-swt-home/s nippits/snippet95.html?rev=1.4
, to "Capture a widget image with a GC", and it worked. Great ! can't do
that with swing :
GC gc = new GC(browser);
Image image = new Image(display, width, height);
gc.copyArea(image, 0, 0);
But the problem is I want to do the capture silently, i.e. with no visible
browser.
And if the browser is not in a top visible shell, the capture acts like a
"print-screen", showing other UIs, but not the browser...
I'm new to SWT, so there's certainly a workaround ?
--
Hugues
|
|
|
Powered by
FUDForum. Page generated in 0.02925 seconds