Display an Image from Clipboard on a Card
Alejandro Tejada
capellan2000 at yahoo.com
Tue Oct 4 10:33:36 EDT 2005
on Tue, 04 Oct 2005
Todd Geist wrote:
> How do I display an image from clipboard on a card?
> I know I need to use
> the clipboarddata["image"]
> But I don't know what to do with it
Hi Todd,
Look in this message:
<http://lists.runrev.com/pipermail/use-revolution/2005-March/053867.html>
First, copy (in windows explorer) the image file.
You could click with the right button of the mouse
over the image file and select "Copy" from the
contextual menu.
The clipboarddata now has the path to the image:
"C://My Documents/MyImage.gif"
The function the clipboard in RR reports the
clipboard as empty, but the function the
clipboarddata returns the path of the image.
Put this script in a button:
on mouseup
put "binfile:" & the clipboarddata into zxcv
set the imageNew of this stack to url zxcv
create image
set the text of last image to the imageNew of this
stack
set the imageNew of this stack to empty
end mouseup
An advantage of this script, over pasting an image
directly from the clipboard, is that images
like jpg, gif and png, stay compressed, occuping
less space in the stack.
al
Visit my site:
http://www.geocities.com/capellan2000/
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
More information about the use-livecode
mailing list