What is available to get an image from the clipboard into VW??

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

What is available to get an image from the clipboard into VW??

Dennis smith-4
I know you can get text, but what if I use a screen-capture utility to
put something on the clipboard??

--
Dennis Smith                         +1 416.798.7948
Cherniak Software Development Corporation   Fax: +1 416.798.0948
509-2001 Sheppard Avenue East        [hidden email]
Toronto, ON M2J 4Z8              sip:[hidden email]
Canada         http://www.CherniakSoftware.com
Entrance off Yorkland Blvd south of Sheppard Ave east of the DVP

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: What is available to get an image from the clipboard into VW??

Holger Kleinsorgen-4
Pixmap class>>fromClipboard
Pixmap>>toClipboard

Am 16.06.2010 18:19, schrieb Dennis Smith:
> I know you can get text, but what if I use a screen-capture utility to
> put something on the clipboard??
>
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: What is available to get an image from the clipboard into VW??

Dennis smith-4
Sounds terribly complicated :)

Thanks!!

On 16/06/2010 12:27 PM, Holger Kleinsorgen wrote:

> Pixmap class>>fromClipboard
> Pixmap>>toClipboard
>
> Am 16.06.2010 18:19, schrieb Dennis Smith:
>    
>> I know you can get text, but what if I use a screen-capture utility to
>> put something on the clipboard??
>>
>>      
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>    

--
Dennis Smith                         +1 416.798.7948
Cherniak Software Development Corporation   Fax: +1 416.798.0948
509-2001 Sheppard Avenue East        [hidden email]
Toronto, ON M2J 4Z8              sip:[hidden email]
Canada         http://www.CherniakSoftware.com
Entrance off Yorkland Blvd south of Sheppard Ave east of the DVP

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: What is available to get an image from the clipboard into VW??

Dave Stevenson-3
Hmm. How about getting the image of a window? Is there a way to simulate the alt+prtScrn action on Windows?
 
Dave Stevenson
[hidden email]



From: Dennis Smith <[hidden email]>
To: Holger Kleinsorgen <[hidden email]>; "vwnc >> "VWNC, "" <[hidden email]>
Sent: Wed, June 16, 2010 9:33:19 AM
Subject: Re: [vwnc] What is available to get an image from the clipboard into VW??

Sounds terribly complicated :)

Thanks!!

On 16/06/2010 12:27 PM, Holger Kleinsorgen wrote:

> Pixmap class>>fromClipboard
> Pixmap>>toClipboard
>
> Am 16.06.2010 18:19, schrieb Dennis Smith:
>   
>> I know you can get text, but what if I use a screen-capture utility to
>> put something on the clipboard??
>>
>>     
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>   

--
Dennis Smith                                +1 416.798.7948
Cherniak Software Development Corporation  Fax: +1 416.798.0948
509-2001 Sheppard Avenue East        [hidden email]
Toronto, ON M2J 4Z8              sip:[hidden email]
Canada                    http://www.CherniakSoftware.com
Entrance off Yorkland Blvd south of Sheppard Ave east of the DVP

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: What is available to get an image from the clipboard into VW??

Holger Kleinsorgen-4
if the window is not covered by other windows:

| win |
win := ScheduledControllers scheduledControllers  first view.
win contentsOfArea: win bounds

if it is covered, #contentsOfArea: will return an incomplete copy.
in this case you can draw the window contents on a pixmap:

| win pixmap |
win := ScheduledControllers scheduledControllers  first view.
pixmap := Pixmap extent: win extent.
win displayOn: pixmap graphicsContext.
pixmap asImage



> Hmm. How about getting the image of a window? Is there a way to
> simulate the alt+prtScrn action on Windows?
> Dave Stevenson
> [hidden email]

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: What is available to get an image from the clipboard into VW??

Claus Kick
In reply to this post by Dave Stevenson-3
Dave Stevenson schrieb:
> Hmm. How about getting the image of a window? Is there a way to simulate the alt+prtScrn action on Windows?
>  Dave Stevenson
> [hidden email]

Cant you just catch the keyboard input event which contains the code for
alt+print?
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: What is available to get an image from the clipboard into VW??

Dave Stevenson-3
I was thinking more of emulating it, not catching it. The idea was to include screen shots during a stack dump in a stripped image. What I was hoping for is a cached pixmap of the last full display of the window. However, if part of the window is obscured (by other windows, or even partially off screen), I'm now thinking that the window wouldn't have displayed itself fully anyway. For an unobscured window I can just do:
    aWindow asImage

 

I think that raising windows in order to capture them would likely be unsafe at dump time, since displaying those newly visible areas may cause more errors. But I could capture the unobscured parts with:

    [aWindow asImage] on: GraphicsContext incompleteAreaCopySignal do: #resume

 

I don't think that triggers any invalidation redisplay, so I think it should be safe.

 

Dave Stevenson
[hidden email]



From: Claus Kick <[hidden email]>
To: Dave Stevenson <[hidden email]>
Cc: "vwnc >> "VWNC, "" <[hidden email]>
Sent: Wed, June 16, 2010 12:13:19 PM
Subject: Re: [vwnc] What is available to get an image from the clipboard into VW??

Dave Stevenson schrieb:
> Hmm. How about getting the image of a window? Is there a way to simulate the alt+prtScrn action on Windows?
>  Dave Stevenson
> [hidden email]

Cant you just catch the keyboard input event which contains the code for alt+print?

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc