Screen capture how-to's [message #447908] |
Tue, 21 December 2004 18:51 |
Larry Bergman Messages: 3 Registered: July 2009 |
Junior Member |
|
|
A while back, I posted a question about how to do screencaptures when
native OS components (such as FileDialogs and Menus) are being displayed.
The solution suggested was to use Display.asyncExec to schedule a screen
capture. I'm registering a callback with Display on SWT.Show events, and
using this approach. I've run into two problems with this.
1) This works great for ordinary menus. With popups, I get an image of a
blank grey rectangle for the menu, with no MenuItems rendered.
2) I can get a screen capture that contains a FileDialog (with contents
rendered), but can't figure out how to get the screen coordinates of the
dialog so that I can trim the image to just the dialog boundaries.
Can anyone help me with these? If there's a solution that requires
modifications to SWT source code, that's fine!
Thanks very much,
Larry Bergman
|
|
|
Powered by
FUDForum. Page generated in 0.03306 seconds