[Graphics] Two questions ... [message #447850] |
Sun, 19 December 2004 03:56  |
Eclipse User |
|
|
|
Hi !
With Swing, I used this little piece of code to make a screen capture :
try
{
r = new Robot();
}
catch (AWTException awe)
{
System.out.println("robot exception occurred");
}
Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
Image img = r.createScreenCapture(new Rectangle(0, 0, d.width, d.height));
Then, I could play with it using :
Graphics tig = img.getGraphics();
My two questions are :
1) how can I do the same thing using SWT ?
2) is it possible to capture a SWT Shell or any other component of the Shell
using java or have I got to use a "native" way ? (if "native" needed, any
hints on both Windows and Linux platforms ? I only know very few about C
and C++ and nothing about linux libraries).
TIA
--
Arnaud
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03572 seconds