Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to make and save a screenshot of my gui application(Windowbuilder screenshot generation command)
How to make and save a screenshot of my gui application [message #1222114] Thu, 19 December 2013 17:42 Go to next message
Belkhi Amin is currently offline Belkhi AminFriend
Messages: 1
Registered: December 2013
Junior Member
Hi,
Is there a java/swt command to save the current view in a file (screenshot)?
For example i display results on my windowbuilder application gui and at the same time the application saves a screenshot.

Best regards




Re: How to make and save a screenshot of my gui application [message #1226731 is a reply to message #1222114] Thu, 02 January 2014 14:27 Go to previous message
Arun Thondapu is currently offline Arun ThondapuFriend
Messages: 12
Registered: April 2011
Junior Member
You can use the GC.copyArea() API in SWT to achieve this. See http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet215.java for an example which shows how to use the API to take a screenshot.
Previous Topic:Browser crashes JVM
Next Topic:Dropdown issue in table column
Goto Forum:
  


Current Time: Thu Apr 25 05:23:12 GMT 2024

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

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

Back to the top