Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Capture the browser rendering as an image
Capture the browser rendering as an image [message #436297] Fri, 14 May 2004 22:04
Eclipse UserFriend
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
Previous Topic:ScrollBar dispose
Next Topic:Associate SWT Application with specific files on OS X
Goto Forum:
  


Current Time: Thu Apr 25 16:47:31 GMT 2024

Powered by FUDForum. Page generated in 0.02925 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top