Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Capture screenshot
Capture screenshot [message #449910] Mon, 31 January 2005 02:44 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 :)
Previous Topic:TableColumn pack problem
Next Topic:Make Image's background transparent in popup menu.
Goto Forum:
  


Current Time: Thu Sep 26 01:37:08 GMT 2024

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

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

Back to the top