paste an image from the clipboard
See the XBit extesion at http://www.geocities.com/~chengye
It can paste a clipboard bitmap into a gimg hosted by a canvas.
The following script copies the screen bitmap into the clipboard,
and then pastes the clipboard image into a canvas:
pack [canvas .c] -expand 1 -fill both
.c create image 0 0 -image [image create gimg canvasImage] -anchor nw
rimage window clipboard
canvasImage config -file [rimage clipboard pastedImage]
Chengye
Quote:
> From the silence can I assume that this is impossible?
> Jose
> > Hi all, I amworking on an application and I have been tring to figure out
> > how to paste an image form the windows clipboard into a canvas. does
> anyone
> > know how to do this?
> > Jose