Capture screenshot [message #449910] |
Mon, 31 January 2005 02:44 |
Eclipse User |
|
|
|
Originally posted by: vafada2.yahoo.com
this there a way for SWT fo capture screenshot (ala
java.awt.Robot.createScreenCapture(Rectangle screenRect) ) of the
_WHOLE_ desktop? a small region of the desktop? and a Shell of an
application?
|
|
|
Re: Capture screenshot [message #449912 is a reply to message #449910] |
Mon, 31 January 2005 03:37 |
Eclipse User |
|
|
|
Originally posted by: vafada2.yahoo.com
bryan yu wrote:
> this there a way for SWT fo capture screenshot (ala
> java.awt.Robot.createScreenCapture(Rectangle screenRect) ) of the
> _WHOLE_ desktop? a small region of the desktop? and a Shell of an
> application?
nevermind... found the solution to my problem :)
|
|
|
Re: Capture screenshot [message #449938 is a reply to message #449912] |
Mon, 31 January 2005 23:29 |
Eclipse User |
|
|
|
Originally posted by: robinwilson.cox.net
Don't keep us in suspense! Tell us so we don't have to reinvent the wheel.
Robin
bryan yu wrote:
> bryan yu wrote:
>
>> this there a way for SWT fo capture screenshot (ala
>> java.awt.Robot.createScreenCapture(Rectangle screenRect) ) of the
>> _WHOLE_ desktop? a small region of the desktop? and a Shell of an
>> application?
>
>
>
> nevermind... found the solution to my problem :)
|
|
|
Re: Capture screenshot [message #449939 is a reply to message #449938] |
Tue, 01 February 2005 01:26 |
Eclipse User |
|
|
|
Originally posted by: vafada2.yahoo.com
lol...
to capture the whole desktop.. yung GC on the Display object... create
an Image object that has the size of the rectangle of the display...
then use GC.copyArea on the image to copy the whole display to the image..
same thing to copy shell and a certain region :)
Robin Wilson wrote:
> Don't keep us in suspense! Tell us so we don't have to reinvent the wheel.
>
> Robin
>
>
> bryan yu wrote:
>
>> bryan yu wrote:
>>
>>> this there a way for SWT fo capture screenshot (ala
>>> java.awt.Robot.createScreenCapture(Rectangle screenRect) ) of the
>>> _WHOLE_ desktop? a small region of the desktop? and a Shell of an
>>> application?
>>
>>
>>
>>
>> nevermind... found the solution to my problem :)
|
|
|
Re: Capture screenshot [message #449940 is a reply to message #449939] |
Tue, 01 February 2005 01:38 |
Eclipse User |
|
|
|
Originally posted by: robinwilson.cox.net
Thanks Bryan. That will come in handy on an upcoming phase of my little
project.
Best regards,
Robin
bryan yu wrote:
> lol...
>
> to capture the whole desktop.. yung GC on the Display object... create
> an Image object that has the size of the rectangle of the display...
> then use GC.copyArea on the image to copy the whole display to the image..
>
>
> same thing to copy shell and a certain region :)
>
> Robin Wilson wrote:
>
>> Don't keep us in suspense! Tell us so we don't have to reinvent the
>> wheel.
>>
>> Robin
>>
>>
>> bryan yu wrote:
>>
>>> bryan yu wrote:
>>>
>>>> this there a way for SWT fo capture screenshot (ala
>>>> java.awt.Robot.createScreenCapture(Rectangle screenRect) ) of the
>>>> _WHOLE_ desktop? a small region of the desktop? and a Shell of an
>>>> application?
>>>
>>>
>>>
>>>
>>>
>>> nevermind... found the solution to my problem :)
|
|
|
Powered by
FUDForum. Page generated in 0.03643 seconds